91. Decode Ways 题目 A message containing letters from A-Z is being encoded to numbers using the following mappi…
分类:LeetCode题目解答
[LeetCode] Design Hit Counter 设计点击计数器
Design a hit counter which counts the number of hits received in the past 5 minutes. Each function acce…
122. Best Time to Buy and Sell Stock II
欢迎fork and star:Nowcoder-Repository-github 122. Best Time to Buy and Sell Stock II 题目 Say you have an array fo…
[LeetCode] Graph Valid Tree 图验证树
Given n nodes labeled from 0 to n - 1 and a list of undirected edges (eac…
[LeetCode] Complex Number Multiplication 复数相乘
Given two strings representing two complex numbers. You need to return a string representing their mult…
【leetcode】102. Binary Tree Level Order Traversal 水平遍历二叉树
1. 题目 Given a binary tree, return the level order traversal of its nodes’ values. (ie, from left to righ…
65. Valid Number
65. Valid Number 题目 Validate if a given string is numeric. Some examples: "0" => true " 0.1 " => true "a…
124. Binary Tree Maximum Path Sum
124. Binary Tree Maximum Path Sum 题目 Given a binary tree, find the maximum path sum. For this problem, a path …
[LeetCode] Add One Row to Tree 二叉树中增加一行
Given the root of a binary tree, then value v and depth d, you need to add a row of node…
[LeetCode] Delete and Earn 删除与赚取
Given an array nums of integers, you can perform operations on the array. In each operation, …
[LeetCode] Maximal Square 最大正方形,Number of Islands,Maximal Rectangle,Maximal Rectangle
Given a 2D binary matrix filled with 0’s and 1’s, find the largest square containing all 1&…
[LeetCode] Implement Stack using Queues 用队列来实现栈
Implement the following operations of a stack using queues. push(x) — Push element x onto stack. …