From e648f53169010ef602772701e014ecbb7a6a3591 Mon Sep 17 00:00:00 2001 From: Sanidhya Singh Date: Thu, 6 Jul 2023 10:38:04 +0530 Subject: [PATCH] "LCA of a BST" is actually Medium (on leetcode) but was listed as Easy --- .../contents/_components/QuestionGroups.json | 22 +++++++++---------- .../contents/best-practice-questions.md | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/apps/website/contents/_components/QuestionGroups.json b/apps/website/contents/_components/QuestionGroups.json index 04b6d727..47694e59 100644 --- a/apps/website/contents/_components/QuestionGroups.json +++ b/apps/website/contents/_components/QuestionGroups.json @@ -99,17 +99,6 @@ "topic": "graph", "routines": ["matrix", "depth-first-search"] }, - { - "slug": "lowest-common-ancestor-of-a-binary-search-tree", - "title": "Lowest Common Ancestor of a Binary Search Tree", - "url": "https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree", - "duration": 20, - "epi": 1, - "difficulty": "Easy", - "id": 235, - "topic": "binary-search-tree", - "routines": [] - }, { "slug": "balanced-binary-tree", "title": "Balanced Binary Tree", @@ -301,6 +290,17 @@ "topic": "array", "routines": ["interval"] }, + { + "slug": "lowest-common-ancestor-of-a-binary-search-tree", + "title": "Lowest Common Ancestor of a Binary Search Tree", + "url": "https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree", + "duration": 20, + "epi": 1, + "difficulty": "Medium", + "id": 235, + "topic": "binary-search-tree", + "routines": [] + }, { "slug": "01-matrix", "title": "01 Matrix", diff --git a/apps/website/contents/best-practice-questions.md b/apps/website/contents/best-practice-questions.md index 96eb3696..c1d38351 100644 --- a/apps/website/contents/best-practice-questions.md +++ b/apps/website/contents/best-practice-questions.md @@ -117,7 +117,7 @@ Week 4 builds up on knowledge from previous weeks but questions are of increased | Question | Difficulty | LeetCode | | :-- | --- | --- | | Subtree of Another Tree | Easy | [Link](https://leetcode.com/problems/subtree-of-another-tree/) | -| Lowest Common Ancestor of BST | Easy | [Link](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/) | +| Lowest Common Ancestor of BST | Medium | [Link](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/) | | Implement Trie (Prefix Tree) | Medium | [Link](https://leetcode.com/problems/implement-trie-prefix-tree/) | | Add and Search Word | Medium | [Link](https://leetcode.com/problems/add-and-search-word-data-structure-design/) | | Kth Smallest Element in a BST | Medium | [Link](https://leetcode.com/problems/kth-smallest-element-in-a-bst/) |