I hereby claim:
- I am imwally on github.
- I am wally (https://keybase.io/wally) on keybase.
- I have a public key ASC-QI1CfDOSJSITBC_TNhkgasAEtRssG9aqTpzRBQ16xgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/bin/sh | |
| cd /usr/local/bin && | |
| curl -s -O https://raw.githubusercontent.com/imwally/scripts/master/whatsnew && | |
| chmod 755 /usr/local/bin/whatsnew |
| package main | |
| import ( | |
| "fmt" | |
| ) | |
| func partition(a []int, lo, hi int) int { | |
| // Select the highest index or right most element in the array | |
| // as the pivot. | |
| p := a[hi] |
| package main | |
| import ( | |
| "fmt" | |
| ) | |
| func partition(a []int, lo, hi int) int { | |
| p := a[hi] | |
| for j := lo; j < hi; j++ { | |
| if a[j] < p { |
| package main | |
| import "fmt" | |
| func Split(s []int) ([]int, []int) { | |
| mid := len(s)/2 | |
| a := s[:mid] | |
| b := s[mid:] |
I hereby claim:
To claim this, I am signing this object: