摘要:
Given two stringssandt, determine if they are isomorphic.Two strings are isomorphic if the characters inscan be replaced to gett.All occurrences of a ... 阅读全文
posted @ 2015-04-29 12:51
Eason Liu
阅读(5177)评论(0)推荐(0)
编辑
摘要:
Aprimeis a positive integer X that has exactly two distinct divisors: 1 and X. The first few prime integers are 2, 3, 5, 7, 11 and 13.A prime D is cal... 阅读全文
posted @ 2015-04-28 19:37
Eason Liu
阅读(941)评论(0)推荐(0)
编辑
摘要:
A zero-indexed array A consisting of N integers is given. A triplet (P, Q, R) istriangularif it is possible to build a triangle with sides of lengths ... 阅读全文
posted @ 2015-04-28 18:16
Eason Liu
阅读(423)评论(0)推荐(0)
编辑
摘要:
Description:Count the number of prime numbers less than a non-negative number,nHint:The number n could be in the order of 100,000 to 5,000,000.click t... 阅读全文
posted @ 2015-04-27 22:58
Eason Liu
阅读(1999)评论(0)推荐(1)
编辑
摘要:
A non-empty zero-indexed array A consisting of N integers is given.A triplet (X, Y, Z), such that 0 ≤ X 3 4 // you can write to stdout for debugging... 阅读全文
posted @ 2015-04-24 14:08
Eason Liu
阅读(422)评论(0)推荐(0)
编辑
摘要:
Remove all elements from a linked list of integers that have valueval.ExampleGiven:1 --> 2 --> 6 --> 3 --> 4 --> 5 --> 6,val= 6Return:1 --> 2 --> 3 --... 阅读全文
posted @ 2015-04-23 19:20
Eason Liu
阅读(1787)评论(0)推荐(0)
编辑