JeromeHuang

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

随笔分类 -  leetcode

摘要:Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are drawn such that the two endpoints of ... 阅读全文
posted @ 2015-04-23 22:47 JeromeHuang 阅读(123) 评论(0) 推荐(0)

摘要:Palindrome NumberDetermine whether an integer is a palindrome. Do this without extra space.Some hints:Could negative integers be palindromes? (ie, -1)... 阅读全文
posted @ 2015-04-21 17:54 JeromeHuang 阅读(162) 评论(0) 推荐(0)

摘要:String to Integer (atoi)Implementatoito convert a string to an integer.Hint:Carefully consider all possible input cases. If you want a challenge, plea... 阅读全文
posted @ 2015-04-20 23:08 JeromeHuang 阅读(176) 评论(0) 推荐(0)

摘要:Reverse IntegerReverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -321题目比较简单,注意越界和负数情况即可!Runtime:16 ms#include #includ... 阅读全文
posted @ 2015-04-20 20:32 JeromeHuang 阅读(124) 评论(0) 推荐(0)

摘要:ZigZag ConversionThe string"PAYPALISHIRING"is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern i... 阅读全文
posted @ 2015-04-19 19:23 JeromeHuang 阅读(160) 评论(0) 推荐(0)