摘要:
/** * Given a number represented as an array of digits, plus one to the number. * * 给定一个以数字数组表示的数字,再加上一个数字。 */ /** * Given a number represented as an array of digits, plus one to the number. * * 给... 阅读全文
摘要:
/** * Follow up for "Remove Duplicates": * What if duplicates are allowed at most twice? * For example, * Given sorted array A =[1,1,1,2,2,3], * Your function should return length =5, and A is now[1,1... 阅读全文
摘要:
/** * Follow up for "Search in Rotated Sorted Array": * What if duplicates are allowed? * Would this affect the run-time complexity? How and why? * Write a function to determine if a given target is i... 阅读全文