摘要:
https://leetcode.com/problems/minimum-size-subarray-sum/ Given an array of n positive integers and a positive integer s, find the minimal length of a 阅读全文
摘要:
https://leetcode.com/problems/isomorphic-strings/ Given two strings s and t, determine if they are isomorphic. Two strings are isomorphic if the chara 阅读全文
摘要:
https://leetcode.com/problems/bitwise-and-of-numbers-range/ Given a range [m, n] where 0 <= m <= n <= 2147483647, return the bitwise AND of all number 阅读全文
摘要:
https://leetcode.com/problems/implement-stack-using-queues/ Implement the following operations of a stack using queues. push(x) -- Push element x onto 阅读全文
摘要:
https://leetcode.com/problems/implement-queue-using-stacks/ Implement the following operations of a queue using stacks. push(x) -- Push element x to t 阅读全文
摘要:
https://leetcode.com/problems/contains-duplicate-ii/ Given an array of integers and an integer k, find out whether there are two distinct indices i an 阅读全文
摘要:
https://leetcode.com/problems/remove-linked-list-elements/ Remove all elements from a linked list of integers that have value val. Example: 递归代码: /** 阅读全文
摘要:
https://leetcode.com/problems/linked-list-cycle/ Given a linked list, determine if it has a cycle in it. Follow up:Can you solve it without using extr 阅读全文