摘要:
Given an unsorted integer array, find the first missing positive integer.Given[1,2,0]return3,and[3,4,-1,1]return2.这道题最开始理解错了意思,以为是找出第一个不是非负数的数,心想,卧槽岂不... 阅读全文
摘要:
You may assume that A has enough space (size that is greater or equal tom+n) to hold additional elements from B. The number of elements initialized in... 阅读全文
摘要:
Given an array and a value, remove all instances of that value in place and return the new length.The order of elements can be changed. It doesn't mat... 阅读全文
摘要:
OutputStream,InputStream,FileOutputStream,FileInputStream.fis = new FileInputStream("C:/Desktop/from.txt"); fos = new FileOutputStream("C:/Desktop/t... 阅读全文