Given a n x n matrix where each of the rows and columns are sorted in ascending order, find the kth sma…
分类:LeetCode题目解答
LeetCode 098 Validate Binary Search Tree
题目描述 Given a binary tree, determine if it is a valid binary search tree (BST). Assume a BST is defined as foll…
【leetcode】91. Decode Ways A-Z的字母表示1-26的数字,反向破解多少种字符串的可能性
1. 题目 A message containing letters from A-Z is being encoded to numbers using the following mapping: ‘A&…
【leetcode】55. Jump Game 数组跳转是否可以到达末节点
1. 题目 Given an array of non-negative integers, you are initially positioned at the first index of the array. E…
[LeetCode] Meeting Rooms 会议室
Given an array of meeting time intervals consisting of start and end times [[s1,e1],[s2,e2],...]&n…
[LeetCode] Bulb Switcher II 灯泡开关之二
There is a room with n lights which are turned on initially and 4 buttons on the wall. After …
[LeetCode] Map Sum Pairs 映射配对之和
Implement a MapSum class with insert, and sum methods. For the method insert, you…
LeetCode | Pascal's Triangle
题目: Given numRows, generate the first numRows of Pascal’s triangle. For example, given&nb…
119. Pascal's Triangle II
欢迎fork and star:Nowcoder-Repository-github 119. Pascal’s Triangle II 题目 Given an index k, return the kth…
[LeetCode] Wiggle Sort II 摆动排序之二
Given an unsorted array nums, reorder it such that nums[0] < nums[1] > nums[2] < num…
[LeetCode] Shopping Offers 购物优惠
In LeetCode Store, there are some kinds of items to sell. Each item has a price. However, there are som…
3. Longest Substring Without Repeating Characters
欢迎fork and star:Nowcoder-Repository-github 3. Longest Substring Without Repeating Characters 题目 Given a string…