上一页 1 ··· 7 8 9 10 11 12 13 下一页
摘要: Given a linked list, remove thenthnode from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2. After re... 阅读全文
posted @ 2015-02-01 11:50 mrpod2g 阅读(102) 评论(0) 推荐(0) 编辑
摘要: Write a function to find the longest common prefix string amongst an array of strings.即找出一组字符串的最长公共前缀。public class Solution { public String longest... 阅读全文
posted @ 2015-01-31 11:36 mrpod2g 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 最近网上都搜不到Taylor的歌了,分享一张love best的album给大家,支持霉霉的还是去买正版把~专辑曲目:01. “Jump Then Fall” 03:5702. “Untouchable” 05:1103. “Forever & Always” (Piano Version) 04:... 阅读全文
posted @ 2015-01-30 14:40 mrpod2g 阅读(215) 评论(0) 推荐(0) 编辑
摘要: Implementatoito convert a string to an integer.Hint:Carefully consider all possible input cases. If you want a challenge, please do not see below and ... 阅读全文
posted @ 2015-01-30 11:34 mrpod2g 阅读(121) 评论(0) 推荐(0) 编辑
摘要: Determine whether an integer is a palindrome. Do this without extra space.方法一:public class Solution { public boolean isPalindrome(int x) { S... 阅读全文
posted @ 2015-01-29 22:19 mrpod2g 阅读(123) 评论(0) 推荐(0) 编辑
摘要: Reverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -321解法一:public class Solution { public int reverse(int x) { ... 阅读全文
posted @ 2015-01-28 22:34 mrpod2g 阅读(136) 评论(0) 推荐(0) 编辑
摘要: The string"PAYPALISHIRING"is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font fo... 阅读全文
posted @ 2015-01-28 18:23 mrpod2g 阅读(152) 评论(0) 推荐(0) 编辑
摘要: Given an indexk, return thekthrow of the Pascal's triangle.For example, givenk= 3,Return[1,3,3,1].完成Pascal's Triangle问题,这个就不难了吧~ 1 public class Soluti... 阅读全文
posted @ 2015-01-26 21:18 mrpod2g 阅读(145) 评论(0) 推荐(0) 编辑
摘要: GivennumRows, generate the firstnumRowsof Pascal's triangle.For example, givennumRows= 5,Return[ [1], [1,1], [1,2,1], [1,3,3,1], [1,4,6,4,1]... 阅读全文
posted @ 2015-01-26 21:06 mrpod2g 阅读(120) 评论(0) 推荐(0) 编辑
摘要: Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a plan, a canal: Pana... 阅读全文
posted @ 2015-01-26 19:23 mrpod2g 阅读(114) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 下一页