-
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).
For example, this binary tree is symmetric:
1
/ \
2 2
/ \ / \
…
-
Given integers `n` and `k`, find the lexicographically k-th smallest integer in the range from `1` to `n`.
Note: 1 ≤ k ≤ n ≤ 109.
Example:
Input:
n: 13 k: 2
Output:
…
-
### LeetCode Username
sayank2002
### Problem Number, Title, and Link
https://leetcode.com/problems/repeated-dna-sequences/
### Bug Category
Missing test case *(Incorrect/Inefficient Code getting …
-
### LeetCode Username
monishankerw
### Problem Number, Title, and Link
longest-palindromic-substring/
### Bug Category
Problem examples
### Bug Description
Given a string s, return the longest …
-
# 要求
1. 每周至少完成给定题目中的两道算法题
2. 围绕每周重点学习的算法知识点,撰写一篇有观点和思考的技术文章(字数不限)
# 注意事项
1. 下面列出的题目中,按照知识点进行了简单分类,但并不意味着使用相应的数据结构或算法一定是解决该题目的最优解,这样分类只是为了方便大家有针对性的练习;
2. 有的题目可能需要结合多个算法或数据结构进行求解。
# 第二周题目
…
-
Hi各位同学,俗话说“三人行,必有我师”,因此我们鼓励大家在整个学习期间,多多 Review 同班同学的代码并进行点评。在这个过程中:
- 可能你会从其他同学的代码中学到一个更优的思路
- 可能你会因为其他同学给你的评论启发新的灵感
- 可能你的代码会得到大家纷纷的点赞
- 有时候也可能因为其他小伙伴的一句“学习了”而备受鼓舞
“让优秀的人一起学习”,大家可以在互相 Review…
-
### LeetCode Username
ritik1chawre
### Problem Number, Title, and Link
1367. Linked List in Binary Tree https://leetcode.com/problems/linked-list-in-binary-tree/
### Bug Category
Missing test cas…
-
A peak element is an element that is strictly greater than its neighbors.
Given an integer array `nums`, find a peak element, and return its index. If the array contains multiple peaks, return the…
-
Given a string that contains only digits `0-9` and a target value, return all possibilities to add binaryoperators (not unary) `+`, `-`, or `*` between the digits so they evaluate to the target val…
-
Design a Tic-tac-toe game that is played between two players on a _n_ x _n_ grid.
You may assume the following rules:
1. A move is guaranteed to be valid and is placed on an empty block.
…