加载中...
分类详情
中等 分类
722-删除注释(Remove Comments)
原文链接: https://leetcode-cn.com/problems/remove-comments 英文原文Given a C++ program, remove comments from it. The program source is an array of strings source where source[i] is the ith line of the source code. This represents the result of splitting the …
2021-12-03
725-分隔链表(Split Linked List in Parts)
原文链接: https://leetcode-cn.com/problems/split-linked-list-in-parts 英文原文Given the head of a singly linked list and an integer k, split the linked list into k consecutive linked list parts. The length of each part should be as equal as possible: no two …
2021-12-03
735-行星碰撞(Asteroid Collision)
原文链接: https://leetcode-cn.com/problems/asteroid-collision 英文原文We are given an array asteroids of integers representing asteroids in a row. For each asteroid, the absolute value represents its size, and the sign represents its direction (positive mean…
2021-12-03
739-每日温度(Daily Temperatures)
原文链接: https://leetcode-cn.com/problems/daily-temperatures 英文原文Given an array of integers temperatures represents the daily temperatures, return an array answer such that answer[i] is the number of days you have to wait after the ith day to get a warm…
2021-12-03
754-到达终点数字(Reach a Number)
原文链接: https://leetcode-cn.com/problems/reach-a-number 英文原文You are standing at position 0 on an infinite number line. There is a destination at position target. You can make some number of moves numMoves so that: On each move, you can either go left o…
2021-12-03
764-最大加号标志(Largest Plus Sign)
原文链接: https://leetcode-cn.com/problems/largest-plus-sign 英文原文You are given an integer n. You have an n x n binary grid grid with all values initially 1's except for some indices given in the array mines. The ith element of the array mines is defined …
2021-12-03
427-建立四叉树(Construct Quad Tree)
原文链接: https://leetcode-cn.com/problems/construct-quad-tree 英文原文Given a n * n matrix grid of 0's and 1's only. We want to represent the grid with a Quad-Tree. Return the root of the Quad-Tree representing the grid. Notice that you can assign the value…
2021-12-03
788-旋转数字(Rotated Digits)
原文链接: https://leetcode-cn.com/problems/rotated-digits 英文原文An integer x is a good if after rotating each digit individually by 180 degrees, we get a valid number that is different from x. Each digit must be rotated - we cannot choose to leave it alone…
2021-12-03
789-逃脱阻碍者(Escape The Ghosts)
原文链接: https://leetcode-cn.com/problems/escape-the-ghosts 英文原文You are playing a simplified PAC-MAN game on an infinite 2-D grid. You start at the point [0, 0], and you are given a destination point target = [xtarget, ytarget] that you are trying to ge…
2021-12-03