请主席起床。顺便看下,纸牛实在不像话。# Stock
h*6
1 楼
俩题,第二个比较简单,就是写个string的split(String s, char delimiter)
第一个我之前没听说过 但是版上大牛可能听说过了 两个数组,里面的数字都是0 to n
-1 and no duplicate. 使用swapWithZero把第二个变成第一个一模一样的 这个
swapWithZero只能跟数值为0的来swap
搜了下 就是这个 http://cs.stackexchange.com/questions/13930/rearrange-an-array-using-swap-with-0
第一个我之前没听说过 但是版上大牛可能听说过了 两个数组,里面的数字都是0 to n
-1 and no duplicate. 使用swapWithZero把第二个变成第一个一模一样的 这个
swapWithZero只能跟数值为0的来swap
搜了下 就是这个 http://cs.stackexchange.com/questions/13930/rearrange-an-array-using-swap-with-0