摘要:
Given an array nums, there is a sliding window of size k which is moving from the very left of the array to the very right. You can only see the k num 阅读全文
posted @ 2019-10-29 11:44
Schwifty
阅读(113)
评论(0)
推荐(0)
摘要:
Write a function to delete a node (except the tail) in a singly linked list, given only access to that node. Given linked list -- head = [4,5,1,9], wh 阅读全文
posted @ 2019-10-29 10:41
Schwifty
阅读(127)
评论(0)
推荐(0)
摘要:
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and put. get(key) - Get the 阅读全文
posted @ 2019-10-29 09:03
Schwifty
阅读(141)
评论(0)
推荐(0)
摘要:
Given a non-empty string s and a dictionary wordDict containing a list of non-empty words, add spaces in s to construct a sentence where each word is 阅读全文
posted @ 2019-10-29 04:00
Schwifty
阅读(163)
评论(0)
推荐(0)
摘要:
Compare two version numbers version1 and version2.If version1 > version2 return 1; if version1 < version2 return -1;otherwise return 0. You may assume 阅读全文
posted @ 2019-10-29 01:53
Schwifty
阅读(204)
评论(0)
推荐(0)

浙公网安备 33010602011771号