-
You are given the root of a binary search tree (BST) and an integer val.
Find the node in the BST that the node's value equals val and return the subtree rooted with that node. If such a node does no…
-
# 이진 탐색 트리 BST(Binary Search Tree) | 안정적인 블로그
🤔 BST 란? 이진 트리 기반의 탐색을 위한 자료구조이다. 노드의 왼쪽 자식은 부모의 값보다 작은 값을 가져야 하며 노드의 오른쪽 자식은 부모의 값보다 큰 값을 가져야 한다.
[https://ajroot5685.github.io/posts/Binary-Search-Tre…
-
### LeetCode Username
karan294
### Problem Number, Title, and Link
1038. Binary Search Tree to Greater Sum Tree https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/
### Bug Catego…
-
| Difficulty | Data Structure | Problem | Links | Importance |
|------------|----------------|---------|-------|------------|
| Medium | Stack | Online Stock Span | [Link](https://leetc…
-
### Checks
- [X] This is not a duplicate of an existing issue (please have a look through our [open issues list](https://github.com/TheOdinProject/curriculum/issues) to make sure)
- [X] I have tho…
-
## Is your feature request related to a problem? Please describe.
No, it isn't a problem. I wanted to add an additional project to it.
## Initial thoughts about the project
This project allows the …
-
### LeetCode Username
karan294
### Problem Number, Title, and Link
1382. Balance a Binary Search Tree https://leetcode.com/problems/balance-a-binary-search-tree/
### Bug Category
Missing test cas…
-
## The next optimizing/benchmarking shall be searching.
We shall test the following
1. Binary Search:
• Best for: Sorted arrays or lists.
• Time complexity: O(\log n)
• Description: Divides th…
-
// Definition of TreeNode class
class TreeNode {
constructor(data) {
this.data = data;
this.left = null;
this.right = null;
}
}
// Find a node in the tree wit…
-
[Validate Binary Search Tree](https://leetcode.com/problems/validate-binary-search-tree/)