https://leetcode.com/problems/roman-to-integer/description/ class Solution { func romanToInt(_ s: String) ->…
分类:LeetCode
【leetcode】- Insert Interval(插入一个区间)
1、题目描述 Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessary)…
path-sum-ii
描述: Given a binary tree and a sum, find all root-to-leaf paths where each path’s sum equals the given su…
LeetCode算法题-Reshape the Matrix(Java实现)
这是悦乐书的第264次更新,第277篇原创 01 看题和准备 今天介绍的是LeetCode算法题中Easy级别的第131题(顺位题号是566)。在MATLAB中,有一个非常有用的函数叫做’reshape…
125. Valid Palindrome (判断char为字母或数字)
解答为: class Solution { public boolean isPalindrome(String s) { if(s.length() < 1){ return true; } List<Ch…
[LeetCode] Is Subsequence 是子序列
Given a string s and a string t, check if s is subsequence of t. You may …
[LeetCode] Maximum Vacation Days 最大化休假日
LeetCode wants to give one of its best employees the option to travel among N cities to colle…
Leetcode155——Min Stack
文章作者:Tyan 博客:noahsnail.com | CSDN | 简书 1. 问题描述 Design a stack that supports push, pop,…
LeetCode算法题-Image Smoother(Java实现)
这是悦乐书的第282次更新,第299篇原创 01 看题和准备 今天介绍的是LeetCode算法题中Easy级别的第150题(顺位题号是661)。给定表示图像灰度的2D整数矩阵M,您需要设计一个平滑器以使每个单元的灰度变为…
balanced-binary-tree
描述: Given a binary tree, determine if it is height-balanced. For this problem, a height-balanced binary tree i…
2018-09-11 558. Quad Tree Intersection
题意:给你一个Quad Tree概念,然后给两个Quad Tree,求这两个Quad Tree的或(OR) 解题思路:或的基本概念是一真即真,全假即假。 注意事项: 第一、A真返回A;B真返回B;A假返回B;B假返回A;…
73. Set Matrix Zeroes
/* * 73. Set Matrix Zeroes QuestionEditorial Solution My Submissions Total Accepted: 70785 Total Submissions: …