Skip to content

Instantly share code, notes, and snippets.

package main
import "fmt"
func findMedianSortedArrays(nums1 []int, nums2 []int) float64 {
len1 := len(nums1)
len2 := len(nums2)
k := (len1 + len2 + 1) / 2
isOdd := false
package main
import "fmt"
const (
UINT_MAX = ^uint(0)
INT_MAX = int(UINT_MAX >> 1)
INT_MIN = -INT_MAX - 1
)
# see https://www.topbug.net/blog/2013/04/14/install-and-use-gnu-command-line-tools-in-mac-os-x/
# core
brew install coreutils
# key commands
brew install binutils
brew install diffutils
brew install ed --default-names
brew install findutils --with-default-names
@wadee
wadee / LC4.go
Last active April 25, 2021 07:08 — forked from lanceliao/dnsmasq-gfwlist.py
将gfwlist转换成带ipset的dnsmasq规则,适用于OpenWrt智能上网
package main
import "fmt"
const (
UINT_MAX = ^uint(0)
INT_MAX = int(UINT_MAX >> 1)
INT_MIN = -INT_MAX - 1
)