- 博客(4)
- 资源 (1)
- 收藏
- 关注
原创 leetcode Search Insert Position 检查数组中是否有这个数
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.You may assume no duplicates in the array....
2019-05-31 17:20:14 144
原创 leetcode Ugly Number 检查知否能被2,3,5整除
Write a program to check whether a given number is an ugly number.Ugly numbers are positive numbers whose prime factors only include 2, 3, 5.Example 1:Input: 6Output: trueExplanation: 6 = ...
2019-05-06 16:51:18 230
原创 leetcode 幸运数字 202. Happy Number
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, replace the number by the sum of the squares o...
2019-05-06 15:37:12 284
原创 Leetcode 判断字符串是否能翻转
Example 1:Input: 121Output: trueExample 2:Input: -121Output: falseExplanation: From left to right, it reads -121. From right to left, it becomes 121-. Therefore it is not a palindrome.E...
2019-05-05 16:11:11 122
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人