上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 23 下一页
摘要: You have two numbers represented by a linked list, where each node contains a single digit. The digits are stored in reverse order, such that the 1’s ... 阅读全文
posted @ 2014-07-08 00:12 jdflyfly 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 参考http://www.cnblogs.com/jdflyfly/p/3819162.html 阅读全文
posted @ 2014-07-08 00:11 jdflyfly 阅读(122) 评论(0) 推荐(0) 编辑
摘要: Implement an algorithm to delete a node in the middle of a single linked list, given only access to that node. 阅读全文
posted @ 2014-07-07 23:41 jdflyfly 阅读(103) 评论(0) 推荐(0) 编辑
摘要: Implement an algorithm to find the kth to last element of a singly linked list. 阅读全文
posted @ 2014-07-07 23:34 jdflyfly 阅读(113) 评论(0) 推荐(0) 编辑
摘要: Write code to remove duplicates from an unsorted linked list. 阅读全文
posted @ 2014-07-07 23:28 jdflyfly 阅读(140) 评论(0) 推荐(0) 编辑
摘要: Assume you have a method isSubstring which checks if one word is a substring of another. Given two strings, s1 and s2, write code to check if s2 is a rotation of s1 using only one call to isSubstring ( i.e., “waterbottle” is a rotation of “erbottlewat”). 阅读全文
posted @ 2014-07-07 23:07 jdflyfly 阅读(176) 评论(0) 推荐(0) 编辑
摘要: Write an algorithm such that if an element in an MxN matrix is 0, its entire row and column is set to 0. 阅读全文
posted @ 2014-07-07 23:03 jdflyfly 阅读(85) 评论(0) 推荐(0) 编辑
摘要: Given an image represented by an NxN matrix, where each pixel in the image is 4 bytes, write a method to rotate the image by 90 degrees. Can you do this in place? 阅读全文
posted @ 2014-07-07 23:00 jdflyfly 阅读(166) 评论(0) 推荐(0) 编辑
摘要: Given an input string, reverse the string word by word. 阅读全文
posted @ 2014-07-07 22:25 jdflyfly 阅读(183) 评论(0) 推荐(0) 编辑
摘要: Evaluate the value of an arithmetic expression in Reverse Polish Notation. 阅读全文
posted @ 2014-07-07 22:22 jdflyfly 阅读(556) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 23 下一页