摘要: 237 -Delete Node in a Linked ListWrite a function to delete a node (except the tail) in a singly linked list, given only access to that node.Supposed ... 阅读全文
posted @ 2015-07-26 23:03 irun 阅读(172) 评论(0) 推荐(0) 编辑
摘要: You are climbing a stair case. It takesnsteps to reach to the top.Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb... 阅读全文
posted @ 2015-07-26 22:26 irun 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 9 - Palindrome NumberDetermine whether an integer is a palindrome. Do this without extra space.Some hints:Could negative integers be palindromes? (ie,... 阅读全文
posted @ 2015-07-26 20:41 irun 阅读(158) 评论(0) 推荐(0) 编辑