-
There is a ball in a maze with empty spaces and walls. The ball can go through empty spaces by rolling up, down, left or right, but it won't stop rolling until hitting a wall. When the ball stops, …
-
[请点击下方图片观看讲解视频](https://www.youtube.com/watch?v=cJdDY4UNTfI)
[Click below image to watch YouTube Video](https://www.youtube.com/watch?v=cJdDY4UNTfI)
[![Video](https://img.youtube.com/vi/cJdDY4UNTfI/0.…
-
### LeetCode Username
Dias Kassenov
### Problem Number, Title, and Link
https://leetcode.com/problems/minimized-maximum-of-products-distributed-to-any-store/description/
### Bug Category
Problem …
-
二进制手表顶部有 4 个 LED 代表 小时(0-11),底部的 6 个 LED 代表 分钟(0-59)。
每个 LED 代表一个 0 或 1,最低位在右侧。
![image](https://user-images.githubusercontent.com/23615778/84564365-c67b7980-ad93-11ea-99ec-8419a5cc7c13.png)
…
-
时间过得好快,转眼间三个月的算法训练营就要结束了,通过这三个月的学习,我感觉个人的编程内功加深了,第一次做LeetCode的两数之和的题目就被虐的好惨,连两层嵌套for循环解题的代码都写不出来,曾经以为只要努力了就会有收获,但是没有方向的努力都是低效的和无效的。
自从和覃超老师一起学习算法之后,才知道了想要解决leetcode上面的题目是需要方法的,五毒神掌、不要死磕、和优秀的题解提高代码…
-
Given the `root` of a binary tree, calculate the vertical order traversal of the binary tree.
For each node at position `(row, col)`, its left and right children will be at positions `(row + 1, …
-
A chess knight can move as indicated in the chess diagram below:
![](https://assets.leetcode.com/uploads/2018/10/12/knight.png) . ![](https://assets.leetcode.com/uploads/2018/10/30/key…
-
Given a singly linked list, determine if it is a palindrome.
Example 1:
Input: 1->2
Output: false
Example 2:
Input: 1->2->2->1
Output: true
Follow up:
Could…
-
# 297. 二叉树的序列化与反序列化
## 入选理由
暂无
## 题目地址
[https://leetcode-cn.com/problems/serialize-and-deserialize-binary-tree/](https://leetcode-cn.com/problems/serialize-and-deserialize-binary-tree/…
-
A group of friends went on holiday and sometimes lent each other money. For example, Alice paid for Bill's lunch for $10. Then later Chris gave Alice $5 for a taxi ride. We can model each transacti…