加载中...
分类详情
困难 分类
174-地下城游戏(Dungeon Game)
原文链接: https://leetcode-cn.com/problems/dungeon-game 英文原文The demons had captured the princess and imprisoned her in the bottom-right corner of a dungeon. The dungeon consists of m x n rooms laid out in a 2D grid. Our valiant knight was initially posit…
2021-12-03
224-基本计算器(Basic Calculator)
原文链接: https://leetcode-cn.com/problems/basic-calculator 英文原文Given a string s representing a valid expression, implement a basic calculator to evaluate it, and return the result of the evaluation. Note: You are not allowed to use any built-in function…
2021-12-03
262-行程和用户(Trips and Users)
原文链接: https://leetcode-cn.com/problems/trips-and-users 英文原文Table: Trips +-------------+----------+ | Column Name | Type | +-------------+----------+ | id | int | | client_id | int | | driver_id | int | | city_id | int | | status | enum | | request_at…
2021-12-03
312-戳气球(Burst Balloons)
原文链接: https://leetcode-cn.com/problems/burst-balloons 英文原文You are given n balloons, indexed from 0 to n - 1. Each balloon is painted with a number on it represented by an array nums. You are asked to burst all the balloons. If you burst the ith ballo…
2021-12-03
321-拼接最大数(Create Maximum Number)
原文链接: https://leetcode-cn.com/problems/create-maximum-number 英文原文You are given two integer arrays nums1 and nums2 of lengths m and n respectively. nums1 and nums2 represent the digits of two numbers. You are also given an integer k. Create the maximu…
2021-12-03
330-按要求补齐数组(Patching Array)
原文链接: https://leetcode-cn.com/problems/patching-array 英文原文Given a sorted integer array nums and an integer n, add/patch elements to the array such that any number in the range [1, n] inclusive can be formed by the sum of some elements in the array. R…
2021-12-03
391-完美矩形(Perfect Rectangle)
原文链接: https://leetcode-cn.com/problems/perfect-rectangle 英文原文Given an array rectangles where rectangles[i] = [xi, yi, ai, bi] represents an axis-aligned rectangle. The bottom-left point of the rectangle is (xi, yi) and the top-right point of it is (a…
2021-12-03
403-青蛙过河(Frog Jump)
原文链接: https://leetcode-cn.com/problems/frog-jump 英文原文A frog is crossing a river. The river is divided into some number of units, and at each unit, there may or may not exist a stone. The frog can jump on a stone, but it must not jump into the water. …
2021-12-03