摘要: 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... 阅读全文
posted @ 2015-06-11 21:27 人生不酱油 阅读(141) 评论(0) 推荐(0) 编辑
摘要: Remove Duplicates from Sorted Array||Follow up for "Remove Duplicates":What if duplicates are allowed at mosttwice?For example,Given sorted arraynums=... 阅读全文
posted @ 2015-06-11 17:12 人生不酱油 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2015-06-11 16:38 人生不酱油 阅读(150) 评论(0) 推荐(0) 编辑
摘要: Remove Duplicates from Sorted ArrayGiven a sorted array, remove the duplicates in place such that each element appear onlyonceand return the new lengt... 阅读全文
posted @ 2015-06-11 16:16 人生不酱油 阅读(106) 评论(0) 推荐(0) 编辑
摘要: No.9 Palindrome NumberDetermine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integ... 阅读全文
posted @ 2015-06-11 15:47 人生不酱油 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2015-06-11 15:16 人生不酱油 阅读(142) 评论(0) 推荐(0) 编辑