摘要:
Given an unsorted array of integers nums, return the length of the longest consecutive elements sequence. You must write an algorithm that runs in O(n 阅读全文
posted @ 2019-10-09 11:11
CNoodle
阅读(516)
评论(0)
推荐(0)
摘要:
Given the head of a linked list and an integer val, remove all the nodes of the linked list that has Node.val == val, and return the new head. Example 阅读全文
posted @ 2019-10-09 08:59
CNoodle
阅读(182)
评论(0)
推荐(0)
摘要:
Given an integer array nums, return true if there exists a triple of indices (i, j, k) such that i < j < k and nums[i] < nums[j] < nums[k]. If no such 阅读全文
posted @ 2019-10-09 08:35
CNoodle
阅读(225)
评论(0)
推荐(0)
摘要:
Given an integer array nums and an integer val, remove all occurrences of val in nums in-place. The relative order of the elements may be changed. Sin 阅读全文
posted @ 2019-10-09 08:07
CNoodle
阅读(452)
评论(0)
推荐(0)
摘要:
Given a signed 32-bit integer x, return x with its digits reversed. If reversing x causes the value to go outside the signed 32-bit integer range [-23 阅读全文
posted @ 2019-10-09 00:52
CNoodle
阅读(457)
评论(0)
推荐(0)
摘要:
Design a data structure that accepts a stream of integers and checks if it has a pair of integers that sum up to a particular value. Implement the Two 阅读全文
posted @ 2019-10-09 00:25
CNoodle
阅读(205)
评论(0)
推荐(0)

浙公网安备 33010602011771号