上一页 1 ··· 45 46 47 48 49 50 51 52 53 ··· 87 下一页
摘要: https://leetcode.com/problems/climbing-stairs/ You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 o 阅读全文
posted @ 2018-11-19 09:34 丧心病狂工科女 阅读(154) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/powx-n/ Implement pow(x, n), which calculates x raised to the power n (xn). Example 1: Example 2: Example 3: Note: -100. 阅读全文
posted @ 2018-11-15 21:16 丧心病狂工科女 阅读(373) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/guess-number-higher-or-lower/ We are playing the Guess Game. The game is as follows: I pick a number from 1 to n. You ha 阅读全文
posted @ 2018-11-15 17:41 丧心病狂工科女 阅读(125) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/power-of-two/ Given an integer, write a function to determine if it is a power of two. Example 1: Example 2: Example 3: 阅读全文
posted @ 2018-11-15 17:26 丧心病狂工科女 阅读(147) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/valid-anagram/ Given two strings s and t , write a function to determine if t is an anagram of s. Example 1: Example 2: 阅读全文
posted @ 2018-11-15 14:51 丧心病狂工科女 阅读(95) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/contains-duplicate/ Given an array of integers, find if the array contains any duplicates. Your function should return t 阅读全文
posted @ 2018-11-15 14:24 丧心病狂工科女 阅读(128) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/count-primes/ Count the number of prime numbers less than a non-negative number, n. Example: 代码: 阅读全文
posted @ 2018-11-15 14:13 丧心病狂工科女 阅读(158) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/happy-number/ Write an algorithm to determine if a number is "happy". A happy number is a number defined by the followin 阅读全文
posted @ 2018-11-15 09:41 丧心病狂工科女 阅读(154) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/string-to-integer-atoi/ Implement atoi which converts a string to an integer. The function first discards as many whites 阅读全文
posted @ 2018-11-12 16:11 丧心病狂工科女 阅读(106) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/container-with-most-water/ Given n non-negative integers a1, a2, ..., an , where each represents a point at coordinate ( 阅读全文
posted @ 2018-11-12 14:22 丧心病狂工科女 阅读(136) 评论(0) 推荐(0) 编辑
上一页 1 ··· 45 46 47 48 49 50 51 52 53 ··· 87 下一页