摘要:
1. devote 和 contribute https://zhidao.baidu.com/question/328034454447561365.html contribute to 和devote to区别1、devote to:专心致力于,把…专用于,另外还有听任的意思。2、contrib 阅读全文
摘要:
Remove the minimum number of invalid parentheses in order to make the input string valid. Return all possible results. Note: The input string may cont 阅读全文
摘要:
1. 关于集合 (1) 关于map 遍历map:https://www.cnblogs.com/imzhj/p/5981665.html 感觉最好记的方法是这个: 关于get方法的一个注意点: (2) set集合的增删改元素方法和List集合是一样的吗?remove方法的一个疑问 一样的,都是 ad 阅读全文
摘要:
N couples sit in 2N seats arranged in a row and want to hold hands. We want to know the minimum number of swaps so that every couple is sitting side b 阅读全文
摘要:
https://leetcode.com/problems/cherry-pickup/description/ In a N x N grid representing a field of cherries, each cell is one of three possible integers 阅读全文
摘要:
Given n balloons, indexed from 0 to n-1. Each balloon is painted with a number on it represented by array nums. You are asked to burst all the balloon 阅读全文
摘要:
You have 4 cards each containing a number from 1 to 9. You need to judge whether they could operated through *, /, +, -, (, ) to get the value of 24. 阅读全文
摘要:
Return the length of the shortest, non-empty, contiguous subarray of A with sum at least K. If there is no non-empty subarray with sum at least K, ret 阅读全文
摘要:
https://leetcode.com/problems/race-car/description/ Your car starts at position 0 and speed +1 on an infinite number line. (Your car can go into negat 阅读全文
摘要:
Best Time to Buy and Sell Stock Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find th 阅读全文