摘要:
Problem : Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number. Th 阅读全文
posted @ 2020-04-05 23:51
littledy
阅读(119)
评论(0)
推荐(0)
摘要:
Problem : A peak element is an element that is greater than its neighbors. Given an input array nums, where nums[i] ≠ nums[i+1], find a peak element a 阅读全文
posted @ 2020-04-05 23:43
littledy
阅读(92)
评论(0)
推荐(0)
摘要:
Problem : Given an integer, write a function to determine if it is a power of two. Example 1: Example 2: Example 3: `` Input: 218 Output: false c bool 阅读全文
posted @ 2020-04-05 23:37
littledy
阅读(148)
评论(0)
推荐(0)
摘要:
Problem : Count the number of prime numbers less than a non negative number, n. Example: 思路 : Solution (C++) : 性能 : Runtime: 208 ms Memory Usage: 6.6 阅读全文
posted @ 2020-04-05 23:17
littledy
阅读(111)
评论(0)
推荐(0)
摘要:
Problem : 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 阅读全文
posted @ 2020-04-05 22:56
littledy
阅读(128)
评论(0)
推荐(0)
摘要:
Problem : Remove all elements from a linked list of integers that have value val. Example: 思路 : Solution (C++) : 性能 : Runtime: 44 ms Memory Usage: 10. 阅读全文
posted @ 2020-04-05 13:05
littledy
阅读(131)
评论(0)
推荐(0)