摘要:
Problem Definition:Write an algorithm to determine if a number is "happy".A happy number is a number defined by the following process: Starting with a... 阅读全文
posted @ 2015-07-17 15:56
曾可爱
阅读(124)
评论(0)
推荐(0)
摘要:
Problem Definition:Remove all elements from a linked list of integers that have value val. ExampleGiven: 1 --> 2 --> 6 --> 3 --> 4 --> 5 --> 6, val =... 阅读全文
posted @ 2015-07-17 15:04
曾可爱
阅读(108)
评论(0)
推荐(0)
摘要:
Problem Definition: Count the number of prime numbers less than a non-negative number, n.Hint: Let's start with a isPrime function. To determine if ... 阅读全文
posted @ 2015-07-17 13:39
曾可爱
阅读(216)
评论(0)
推荐(0)
摘要:
Problem Definition:Given two strings s and t, determine if they are isomorphic.Two strings are isomorphic if the characters in s can be replaced to ge... 阅读全文
posted @ 2015-07-17 13:35
曾可爱
阅读(144)
评论(0)
推荐(0)
摘要:
Problem Definition: Reverse a singly linked list.Hint:A linked list can be reversed either iteratively or recursively. Could you implement both?Solut... 阅读全文
posted @ 2015-07-17 09:32
曾可爱
阅读(132)
评论(0)
推荐(0)

浙公网安备 33010602011771号