摘要: 仅供自己学习 题目: Given a string s that consists of only uppercase English letters, you can perform at most k operations on that string. In one operation, yo 阅读全文
posted @ 2021-02-02 21:54 Mrsdwang 阅读(37) 评论(0) 推荐(0) 编辑
摘要: 仅供自己学习 题目: Alice and Bob have candy bars of different sizes: A[i] is the size of the i-th bar of candy that Alice has, and B[j] is the size of the j-t 阅读全文
posted @ 2021-02-01 22:17 Mrsdwang 阅读(52) 评论(0) 推荐(0) 编辑
摘要: 仅供自己学习 题目: ou are a hiker preparing for an upcoming hike. You are given heights, a 2D array of size rows x columns, where heights[row][col] represents 阅读全文
posted @ 2021-01-29 21:26 Mrsdwang 阅读(63) 评论(0) 推荐(0) 编辑
摘要: 仅供自己学习 题目: Given an array of distinct integers candidates and a target integer target, return a list of all unique combinations of candidates where th 阅读全文
posted @ 2021-01-28 16:55 Mrsdwang 阅读(48) 评论(0) 推荐(0) 编辑
摘要: 仅供自己学习 题目: Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. Example 1: Input: n = 3Output: ["(( 阅读全文
posted @ 2021-01-28 11:33 Mrsdwang 阅读(51) 评论(0) 推荐(0) 编辑
摘要: 仅供自己学习 题目: Given an array of integers nums, write a method that returns the "pivot" index of this array. We define the pivot index as the index where 阅读全文
posted @ 2021-01-28 10:48 Mrsdwang 阅读(51) 评论(0) 推荐(0) 编辑
摘要: 仅供自己学习 题目: Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could represent. Return the an 阅读全文
posted @ 2021-01-27 23:53 Mrsdwang 阅读(41) 评论(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 阅读全文
posted @ 2021-01-27 22:17 Mrsdwang 阅读(66) 评论(0) 推荐(0) 编辑
摘要: 仅供自己学习 题目: The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a 阅读全文
posted @ 2021-01-26 00:17 Mrsdwang 阅读(41) 评论(0) 推荐(0) 编辑
摘要: 仅供自己学习 题目: In a N x N grid composed of 1 x 1 squares, each 1 x 1 square consists of a /, \, or blank space. These characters divide the square into co 阅读全文
posted @ 2021-01-25 21:51 Mrsdwang 阅读(71) 评论(0) 推荐(0) 编辑