
Algorithm
文章平均质量分 51
你的程序员大叔
这个作者很懒,什么都没留下…
展开
-
D02-Array--leetcode - 217. Contains Duplicate
#217. Contains DuplicateGiven an integer array nums, return true if any value appears at least twice in the array, and return false if every element is distinct.Example 1:Input: nums = [1,2,3,1]Output: trueExample 2:Input: nums = [1,2,3,4]Output: fals转载 2022-10-20 07:26:27 · 147 阅读 · 1 评论 -
D01- leetcode 121. Best Time to Buy and Sell Stock
【代码】D01- leetcode 121. Best Time to Buy and Sell Stock。转载 2022-10-18 23:18:03 · 151 阅读 · 0 评论 -
面试算法题-01
1-Two number sum(两数之和)write a function that takes in a non-empty array of distinct integers and an integer representing a target sum. if any two numbers in the input array sum up to the target sum, the function should return them in an array in any order.原创 2021-09-01 07:20:19 · 105 阅读 · 0 评论