auto commit
This commit is contained in:
@ -420,7 +420,7 @@ public int[][] reconstructQueue(int[][] people) {
|
||||
|
||||
双指针主要用于遍历数组,两个指针指向不同的元素,从而协同完成任务。
|
||||
|
||||
**从一个已经排序的数组中查找出两个数,使它们的和为 0**
|
||||
**从一个已经排序的数组中找出两个数,使它们的和为 0**
|
||||
|
||||
[Leetcode :167. Two Sum II - Input array is sorted (Easy)](https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/description/)
|
||||
|
||||
@ -518,7 +518,7 @@ Output: True
|
||||
Explanation: You could delete the character 'c'.
|
||||
```
|
||||
|
||||
题目描述:字符串可以删除一个字符,判断是否能构成回文字符串。
|
||||
题目描述:可以删除一个字符,判断是否能构成回文字符串。
|
||||
|
||||
```java
|
||||
public boolean validPalindrome(String s) {
|
||||
@ -548,7 +548,7 @@ private boolean isPalindrome(String s, int l, int r){
|
||||
|
||||
[Leetcode : 88. Merge Sorted Array (Easy)](https://leetcode.com/problems/merge-sorted-array/description/)
|
||||
|
||||
题目描述:把归并结果存到第一个数组上
|
||||
题目描述:把归并结果存到第一个数组上。
|
||||
|
||||
```java
|
||||
public void merge(int[] nums1, int m, int[] nums2, int n) {
|
||||
@ -596,7 +596,7 @@ Output:
|
||||
"apple"
|
||||
```
|
||||
|
||||
题目描述:可以删除 s 中的一些字符,使得它成为字符串列表 d 中的一个字符串。要求在 d 中找到满足条件的最长字符串。
|
||||
题目描述:删除 s 中的一些字符,使得它构成字符串列表 d 中的一个字符串,找出能构成的最长字符串。
|
||||
|
||||
```java
|
||||
public String findLongestWord(String s, List<String> d) {
|
||||
|
Reference in New Issue
Block a user