摘要:
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 阅读全文
posted @ 2017-11-28 14:14
Fia
阅读(144)评论(0)推荐(0)
编辑
摘要:
Determine whether an integer is a palindrome. Do this without extra space. 方法一 可以参考 007-Reverse Integer,把整数翻转,再判断翻转后的数和原来的数是否相同来判断是否是回文数 1. 不能申请额外空间,所 阅读全文
posted @ 2017-11-27 11:13
Fia
阅读(184)评论(0)推荐(0)
编辑
摘要:
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 阅读全文
posted @ 2017-11-24 14:32
Fia
阅读(213)评论(0)推荐(0)
编辑
摘要:
题目来源 https://leetcode.com/problems/reverse-integer/description/ Descirption:Given a 32-bit signed integer, reverse digits of an integer. Example 1: Ex 阅读全文
posted @ 2017-11-23 18:15
Fia
阅读(192)评论(0)推荐(0)
编辑