摘要: 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 阅读(151) 评论(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 阅读(126) 评论(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 阅读(120) 评论(0) 推荐(0)
摘要: Write a program to find the node at which the intersection of two singly linked lists begins.For example, the following two linked lists:A: a... 阅读全文
posted @ 2015-01-26 16:40 mrpod2g 阅读(117) 评论(0) 推荐(0)