摘要:
No.66 Plus OneGiven a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significa... 阅读全文
摘要:
Remove Duplicates from Sorted Array||Follow up for "Remove Duplicates":What if duplicates are allowed at mosttwice?For example,Given sorted arraynums=... 阅读全文
摘要:
No.27 Remove ElementGiven an array and a value, remove all instances of that value in place and return the new length.The order of elements can be cha... 阅读全文
摘要:
Remove Duplicates from Sorted ArrayGiven a sorted array, remove the duplicates in place such that each element appear onlyonceand return the new lengt... 阅读全文
摘要:
No.9 Palindrome NumberDetermine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integ... 阅读全文
摘要:
No.219 Contains Duplicate ||Given an array of integers and an integerk, find out whether there there are two distinct indicesiandjin the array such th... 阅读全文