摘要:
Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward. Example 1: Example 2: Example 3: 阅读全文
posted @ 2018-12-17 19:07
fatttcat
阅读(128)
评论(0)
推荐(0)
摘要:
Implement strStr(). Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack. Example 1: Input: haystac 阅读全文
posted @ 2018-12-17 18:43
fatttcat
阅读(108)
评论(0)
推荐(0)
摘要:
Given a non-empty binary search tree and a target value, find the value in the BST that is closest to the target. Note: Given target value is a floati 阅读全文
posted @ 2018-12-17 18:27
fatttcat
阅读(114)
评论(0)
推荐(0)
摘要:
Given an integer array sorted in ascending order, write a function to search target in nums. If target exists, then return its index, otherwise return 阅读全文
posted @ 2018-12-17 14:04
fatttcat
阅读(828)
评论(0)
推荐(0)
摘要:
There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity sh 阅读全文
posted @ 2018-12-17 13:22
fatttcat
阅读(103)
评论(0)
推荐(0)
摘要:
There are a row of n houses, each house can be painted with one of the three colors: red, blue or green. The cost of painting each house with a certai 阅读全文
posted @ 2018-12-17 10:53
fatttcat
阅读(133)
评论(0)
推荐(0)
摘要:
Get the Kth number in the Fibonacci Sequence. (K is 0-indexed, the 0th Fibonacci number is 0 and the 1st Fibonacci number is 1). Examples 0th fibonacc 阅读全文
posted @ 2018-12-17 09:34
fatttcat
阅读(135)
评论(0)
推荐(0)
摘要:
Given a list of sorted characters letters containing only lowercase letters, and given a target letter target, find the smallest element in the list t 阅读全文
posted @ 2018-12-17 08:38
fatttcat
阅读(132)
评论(0)
推荐(0)
浙公网安备 33010602011771号