上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页
摘要: Given an array of integers, every element appears twice except for one. Find that single one. Note:Your algorithm should have a linear runtime complex... 阅读全文
posted @ 2015-11-03 10:59 AprilCheny 阅读(252) 评论(0) 推荐(0) 编辑
摘要: Description:Count the number of prime numbers less than a non-negative number, n.Credits:Special thanks to @mithmatt for adding this problem and creat... 阅读全文
posted @ 2015-11-03 10:09 AprilCheny 阅读(214) 评论(0) 推荐(0) 编辑
摘要: Write an algorithm to determine if a number is "happy".A happy number is a number defined by the following process: Starting with any positive integer... 阅读全文
posted @ 2015-11-02 15:02 AprilCheny 阅读(171) 评论(0) 推荐(0) 编辑
摘要: You are playing the following Bulls and Cows game with your friend: You write a 4-digit secret number and ask your friend to guess it. Each time your ... 阅读全文
posted @ 2015-11-02 13:45 AprilCheny 阅读(477) 评论(0) 推荐(0) 编辑
摘要: Given two strings s and t, determine if they are isomorphic.Two strings are isomorphic if the characters in s can be replaced to get t.All occurrences... 阅读全文
posted @ 2015-11-02 11:27 AprilCheny 阅读(743) 评论(0) 推荐(0) 编辑
摘要: Given two strings s and t, write a function to determine if t is an anagram of s.For example,s = "anagram", t = "nagaram", return true.s = "rat", t = ... 阅读全文
posted @ 2015-11-01 10:54 AprilCheny 阅读(184) 评论(0) 推荐(0) 编辑
摘要: Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules.The Sudoku board could be partially filled, where empty cells are filled with... 阅读全文
posted @ 2015-11-01 08:53 AprilCheny 阅读(212) 评论(0) 推荐(0) 编辑
摘要: Given a pattern and a string str, find if str follows the same pattern.Here follow means a full match, such that there is a bijection between a letter... 阅读全文
posted @ 2015-10-31 09:56 AprilCheny 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 转载请说明出处:http://blog.csdn.net/cywosp/article/details/32721011 Sublime Text是个跨平台的编辑器,支持Windows、Linux、Mac系统平台,支持各种语言的代码编辑,配合上对应的插件,话上点时间学习,你将会对它 爱不释手,大大的... 阅读全文
posted @ 2015-10-30 10:02 AprilCheny 阅读(412) 评论(0) 推荐(0) 编辑
摘要: Convert a non-negative integer to its english words representation. Given input is guaranteed to be less than 231- 1.For example,123 -> "One Hundred T... 阅读全文
posted @ 2015-10-29 11:11 AprilCheny 阅读(211) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页