diff --git a/dsa-problems/leetcode-problems/0200-0299.md b/dsa-problems/leetcode-problems/0200-0299.md index 2b08fc49d..8a22634b1 100644 --- a/dsa-problems/leetcode-problems/0200-0299.md +++ b/dsa-problems/leetcode-problems/0200-0299.md @@ -4,7 +4,619 @@ title: LeetCode Problems 200 - 299 sidebar_label: 0200 - 0299 keywords: - LeetCode - - LeeCode Problems - - LeeCode Problems 200 - 299 - - dsa problems ---- \ No newline at end of file + - LeetCode Problems + - LeetCode Problems 200 - 299 + - DSA problems +--- + +export const problems = [ + { + "problemName": "200. Number of Islands", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/number-of-islands", + "solutionLink": "#" + }, + { + "problemName": "201. Bitwise AND of Numbers Range", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/bitwise-and-of-numbers-range", + "solutionLink": "#" + }, + { + "problemName": "202. Happy Number", + "difficulty": "Easy", + "leetCodeLink": "https://leetcode.com/problems/happy-number", + "solutionLink": "#" + }, + { + "problemName": "203. Remove Linked List Elements", + "difficulty": "Easy", + "leetCodeLink": "https://leetcode.com/problems/remove-linked-list-elements", + "solutionLink": "#" + }, + { + "problemName": "204. Count Primes", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/count-primes", + "solutionLink": "#" + }, + { + "problemName": "205. Isomorphic Strings", + "difficulty": "Easy", + "leetCodeLink": "https://leetcode.com/problems/isomorphic-strings", + "solutionLink": "#" + }, + { + "problemName": "206. Reverse Linked List", + "difficulty": "Easy", + "leetCodeLink": "https://leetcode.com/problems/reverse-linked-list", + "solutionLink": "#" + }, + { + "problemName": "207. Course Schedule", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/course-schedule", + "solutionLink": "#" + }, + { + "problemName": "208. Implement Trie (Prefix Tree)", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/implement-trie-prefix-tree", + "solutionLink": "#" + }, + { + "problemName": "209. Minimum Size Subarray Sum", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/minimum-size-subarray-sum", + "solutionLink": "#" + }, + { + "problemName": "210. Course Schedule II", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/course-schedule-ii", + "solutionLink": "#" + }, + { + "problemName": "211. Design Add and Search Words Data Structure", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/design-add-and-search-words-data-structure", + "solutionLink": "#" + }, + { + "problemName": "212. Word Search II", + "difficulty": "Hard", + "leetCodeLink": "https://leetcode.com/problems/word-search-ii", + "solutionLink": "#" + }, + { + "problemName": "213. House Robber II", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/house-robber-ii", + "solutionLink": "#" + }, + { + "problemName": "214. Shortest Palindrome", + "difficulty": "Hard", + "leetCodeLink": "https://leetcode.com/problems/shortest-palindrome", + "solutionLink": "#" + }, + { + "problemName": "215. Kth Largest Element in an Array", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/kth-largest-element-in-an-array", + "solutionLink": "#" + }, + { + "problemName": "216. Combination Sum III", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/combination-sum-iii", + "solutionLink": "#" + }, + { + "problemName": "217. Contains Duplicate", + "difficulty": "Easy", + "leetCodeLink": "https://leetcode.com/problems/contains-duplicate", + "solutionLink": "#" + }, + { + "problemName": "218. The Skyline Problem", + "difficulty": "Hard", + "leetCodeLink": "https://leetcode.com/problems/the-skyline-problem", + "solutionLink": "#" + }, + { + "problemName": "219. Contains Duplicate II", + "difficulty": "Easy", + "leetCodeLink": "https://leetcode.com/problems/contains-duplicate-ii", + "solutionLink": "#" + }, + { + "problemName": "220. Contains Duplicate III", + "difficulty": "Hard", + "leetCodeLink": "https://leetcode.com/problems/contains-duplicate-iii", + "solutionLink": "#" + }, + { + "problemName": "221. Maximal Square", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/maximal-square", + "solutionLink": "#" + }, + { + "problemName": "222. Count Complete Tree Nodes", + "difficulty": "Easy", + "leetCodeLink": "https://leetcode.com/problems/count-complete-tree-nodes", + "solutionLink": "#" + }, + { + "problemName": "223. Rectangle Area", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/rectangle-area", + "solutionLink": "#" + }, + { + "problemName": "224. Basic Calculator", + "difficulty": "Hard", + "leetCodeLink": "https://leetcode.com/problems/basic-calculator", + "solutionLink": "#" + }, + { + "problemName": "225. Implement Stack using Queues", + "difficulty": "Easy", + "leetCodeLink": "https://leetcode.com/problems/implement-stack-using-queues", + "solutionLink": "#" + }, + { + "problemName": "226. Invert Binary Tree", + "difficulty": "Easy", + "leetCodeLink": "https://leetcode.com/problems/invert-binary-tree", + "solutionLink": "#" + }, + { + "problemName": "227. Basic Calculator II", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/basic-calculator-ii", + "solutionLink": "#" + }, + { + "problemName": "228. Summary Ranges", + "difficulty": "Easy", + "leetCodeLink": "https://leetcode.com/problems/summary-ranges", + "solutionLink": "#" + }, + { + "problemName": "229. Majority Element II", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/majority-element-ii", + "solutionLink": "#" + }, + { + "problemName": "230. Kth Smallest Element in a BST", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/kth-smallest-element-in-a-bst", + "solutionLink": "#" + }, + { + "problemName": "231. Power of Two", + "difficulty": "Easy", + "leetCodeLink": "https://leetcode.com/problems/power-of-two", + "solutionLink": "#" + }, + { + "problemName": "232. Implement Queue using Stacks", + "difficulty": "Easy", + "leetCodeLink": "https://leetcode.com/problems/implement-queue-using-stacks", + "solutionLink": "#" + }, + { + "problemName": "233. Number of Digit One", + "difficulty": "Hard", + "leetCodeLink": "https://leetcode.com/problems/number-of-digit-one", + "solutionLink": "#" + }, + { + "problemName": "234. Palindrome Linked List", + "difficulty": "Easy", + "leetCodeLink": "https://leetcode.com/problems/palindrome-linked-list", + "solutionLink": "#" + }, + { + "problemName": "235. Lowest Common Ancestor of a Binary Search Tree", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree", + "solutionLink": "#" + }, + { + "problemName": "236. Lowest Common Ancestor of a Binary Tree", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree", + "solutionLink": "#" + }, + { + "problemName": "237. Delete Node in a Linked List", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/delete-node-in-a-linked-list", + "solutionLink": "#" + }, + { + "problemName": "238. Product of Array Except Self", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/product-of-array-except-self", + "solutionLink": "#" + }, + { + "problemName": "239. Sliding Window Maximum", + "difficulty": "Hard", + "leetCodeLink": "https://leetcode.com/problems/sliding-window-maximum", + "solutionLink": "#" + }, + { + "problemName": "240. Search a 2D Matrix II", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/search-a-2d-matrix-ii", + "solutionLink": "#" + }, + { + "problemName": "241. Different Ways to Add Parentheses", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/different-ways-to-add-parentheses", + "solutionLink": "#" + }, + { + "problemName": "242. Valid Anagram", + "difficulty": "Easy", + "leetCodeLink": "https://leetcode.com/problems/valid-anagram", + "solutionLink": "#" + }, + { + "problemName": "243. Shortest Word Distance", + "difficulty": "Easy", + "leetCodeLink": "https://leetcode.com/problems/shortest-word-distance", + "solutionLink": "#" + }, + { + "problemName": "244. Shortest Word Distance II", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/shortest-word-distance-ii", + "solutionLink": "#" + }, + { + "problemName": "245. Shortest Word Distance III", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/shortest-word-distance-iii", + "solutionLink": "#" + }, + { + "problemName": "246. Strobogrammatic Number", + "difficulty": "Easy", + "leetCodeLink": "https://leetcode.com/problems/strobogrammatic-number", + "solutionLink": "#" + }, + { + "problemName": "247. Strobogrammatic Number II", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/strobogrammatic-number-ii", + "solutionLink": "#" + }, + { + "problemName": "248. Strobogrammatic Number III", + "difficulty": "Hard", + "leetCodeLink": "https://leetcode.com/problems/strobogrammatic-number-iii", + "solutionLink": "#" + }, + { + "problemName": "249. Group Shifted Strings", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/group-shifted-strings", + "solutionLink": "#" + }, + { + "problemName": "250. Count Univalue Subtrees", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/count-univalue-subtrees", + "solutionLink": "#" + }, + { + "problemName": "251. Flatten 2D Vector", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/flatten-2d-vector", + "solutionLink": "#" + }, + { + "problemName": "252. Meeting Rooms", + "difficulty": "Easy", + "leetCodeLink": "https://leetcode.com/problems/meeting-rooms", + "solutionLink": "#" + }, + { + "problemName": "253. Meeting Rooms II", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/meeting-rooms-ii", + "solutionLink": "#" + }, + { + "problemName": "254. Factor Combinations", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/factor-combinations", + "solutionLink": "#" + }, + { + "problemName": "255. Verify Preorder Sequence in Binary Search Tree", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/verify-preorder-sequence-in-binary-search-tree", + "solutionLink": "#" + }, + { + "problemName": "256. Paint House", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/paint-house", + "solutionLink": "#" + }, + { + "problemName": "257. Binary Tree Paths", + "difficulty": "Easy", + "leetCodeLink": "https://leetcode.com/problems/binary-tree-paths", + "solutionLink": "#" + }, + { + "problemName": "258. Add Digits", + "difficulty": "Easy", + "leetCodeLink": "https://leetcode.com/problems/add-digits", + "solutionLink": "#" + }, + { + "problemName": "259. 3Sum Smaller", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/3sum-smaller", + "solutionLink": "#" + }, + { + "problemName": "260. Single Number III", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/single-number-iii", + "solutionLink": "#" + }, + { + "problemName": "261. Graph Valid Tree", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/graph-valid-tree", + "solutionLink": "#" + }, + { + "problemName": "262. Trips and Users", + "difficulty": "Hard", + "leetCodeLink": "https://leetcode.com/problems/trips-and-users", + "solutionLink": "#" + }, + { + "problemName": "263. Ugly Number", + "difficulty": "Easy", + "leetCodeLink": "https://leetcode.com/problems/ugly-number", + "solutionLink": "#" + }, + { + "problemName": "264. Ugly Number II", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/ugly-number-ii", + "solutionLink": "#" + }, + { + "problemName": "265. Paint House II", + "difficulty": "Hard", + "leetCodeLink": "https://leetcode.com/problems/paint-house-ii", + "solutionLink": "#" + }, + { + "problemName": "266. Palindrome Permutation", + "difficulty": "Easy", + "leetCodeLink": "https://leetcode.com/problems/palindrome-permutation", + "solutionLink": "#" + }, + { + "problemName": "267. Palindrome Permutation II", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/palindrome-permutation-ii", + "solutionLink": "#" + }, + { + "problemName": "268. Missing Number", + "difficulty": "Easy", + "leetCodeLink": "https://leetcode.com/problems/missing-number", + "solutionLink": "#" + }, + { + "problemName": "269. Alien Dictionary", + "difficulty": "Hard", + "leetCodeLink": "https://leetcode.com/problems/alien-dictionary", + "solutionLink": "#" + }, + { + "problemName": "270. Closest Binary Search Tree Value", + "difficulty": "Easy", + "leetCodeLink": "https://leetcode.com/problems/closest-binary-search-tree-value", + "solutionLink": "#" + }, + { + "problemName": "271. Encode and Decode Strings", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/encode-and-decode-strings", + "solutionLink": "#" + }, + { + "problemName": "272. Closest Binary Search Tree Value II", + "difficulty": "Hard", + "leetCodeLink": "https://leetcode.com/problems/closest-binary-search-tree-value-ii", + "solutionLink": "#" + }, + { + "problemName": "273. Integer to English Words", + "difficulty": "Hard", + "leetCodeLink": "https://leetcode.com/problems/integer-to-english-words", + "solutionLink": "#" + }, + { + "problemName": "274. H-Index", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/h-index", + "solutionLink": "#" + }, + { + "problemName": "275. H-Index II", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/h-index-ii", + "solutionLink": "#" + }, + { + "problemName": "276. Paint Fence", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/paint-fence", + "solutionLink": "#" + }, + { + "problemName": "277. Find the Celebrity", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/find-the-celebrity", + "solutionLink": "#" + }, + { + "problemName": "278. First Bad Version", + "difficulty": "Easy", + "leetCodeLink": "https://leetcode.com/problems/first-bad-version", + "solutionLink": "#" + }, + { + "problemName": "279. Perfect Squares", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/perfect-squares", + "solutionLink": "#" + }, + { + "problemName": "280. Wiggle Sort", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/wiggle-sort", + "solutionLink": "#" + }, + { + "problemName": "281. Zigzag Iterator", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/zigzag-iterator", + "solutionLink": "#" + }, + { + "problemName": "282. Expression Add Operators", + "difficulty": "Hard", + "leetCodeLink": "https://leetcode.com/problems/expression-add-operators", + "solutionLink": "#" + }, + { + "problemName": "283. Move Zeroes", + "difficulty": "Easy", + "leetCodeLink": "https://leetcode.com/problems/move-zeroes", + "solutionLink": "#" + }, + { + "problemName": "284. Peeking Iterator", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/peeking-iterator", + "solutionLink": "#" + }, + { + "problemName": "285. Inorder Successor in BST", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/inorder-successor-in-bst", + "solutionLink": "#" + }, + { + "problemName": "286. Walls and Gates", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/walls-and-gates", + "solutionLink": "#" + }, + { + "problemName": "287. Find the Duplicate Number", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/find-the-duplicate-number", + "solutionLink": "#" + }, + { + "problemName": "288. Unique Word Abbreviation", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/unique-word-abbreviation", + "solutionLink": "#" + }, + { + "problemName": "289. Game of Life", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/game-of-life", + "solutionLink": "#" + }, + { + "problemName": "290. Word Pattern", + "difficulty": "Easy", + "leetCodeLink": "https://leetcode.com/problems/word-pattern", + "solutionLink": "#" + }, + { + "problemName": "291. Word Pattern II", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/word-pattern-ii", + "solutionLink": "#" + }, + { + "problemName": "292. Nim Game", + "difficulty": "Easy", + "leetCodeLink": "https://leetcode.com/problems/nim-game", + "solutionLink": "#" + }, + { + "problemName": "293. Flip Game", + "difficulty": "Easy", + "leetCodeLink": "https://leetcode.com/problems/flip-game", + "solutionLink": "#" + }, + { + "problemName": "294. Flip Game II", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/flip-game-ii", + "solutionLink": "#" + }, + { + "problemName": "295. Find Median from Data Stream", + "difficulty": "Hard", + "leetCodeLink": "https://leetcode.com/problems/find-median-from-data-stream", + "solutionLink": "#" + }, + { + "problemName": "296. Best Meeting Point", + "difficulty": "Hard", + "leetCodeLink": "https://leetcode.com/problems/best-meeting-point", + "solutionLink": "#" + }, + { + "problemName": "297. Serialize and Deserialize Binary Tree", + "difficulty": "Hard", + "leetCodeLink": "https://leetcode.com/problems/serialize-and-deserialize-binary-tree", + "solutionLink": "#" + }, + { + "problemName": "298. Binary Tree Longest Consecutive Sequence", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/binary-tree-longest-consecutive-sequence", + "solutionLink": "#" + }, + { + "problemName": "299. Bulls and Cows", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/bulls-and-cows", + "solutionLink": "#" + } +] + +