摘要:
Given a sorted array, remove the duplicates in-place such that each element appear only once and return the new length. Do not allocate extra space fo 阅读全文
摘要:
Determine whether an integer is a palindrome. Do this without extra space. 方法一 可以参考 007-Reverse Integer,把整数翻转,再判断翻转后的数和原来的数是否相同来判断是否是回文数 1. 不能申请额外空间,所 阅读全文
摘要:
Given an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each input would have exa 阅读全文
摘要:
题目来源 https://leetcode.com/problems/reverse-integer/description/ Descirption:Given a 32-bit signed integer, reverse digits of an integer. Example 1: Ex 阅读全文