diff --git a/dsa-problems/leetcode-problems/0300-0399.md b/dsa-problems/leetcode-problems/0300-0399.md index 8175784b3..343968898 100644 --- a/dsa-problems/leetcode-problems/0300-0399.md +++ b/dsa-problems/leetcode-problems/0300-0399.md @@ -7,4 +7,611 @@ keywords: - LeeCode Problems - LeeCode Problems 300 - 399 - dsa problems ---- \ No newline at end of file +--- + + +export const problems = [ + { + "problemName": "300. Longest Increasing Subsequence", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/longest-increasing-subsequence/", + "solutionLink": "#" + }, + { + "problemName": "301. Remove Invalid Parentheses", + "difficulty": "Hard", + "leetCodeLink": "https://leetcode.com/problems/remove-invalid-parentheses/", + "solutionLink": "#" + }, + { + "problemName": "302. Smallest Rectangle Enclosing Black Pixels", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/smallest-rectangle-enclosing-black-pixels/", + "solutionLink": "#" + }, + { + "problemName": "303. Range Sum Query - Immutable", + "difficulty": "Easy", + "leetCodeLink": "https://leetcode.com/problems/range-sum-query-immutable/", + "solutionLink": "#" + }, + { + "problemName": "304. Range Sum Query 2D - Immutable", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/range-sum-query-2d-immutable/", + "solutionLink": "#" + }, + { + "problemName": "305. number-of-islands-ii", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/number-of-islands-ii/", + "solutionLink": "#" + }, + { + "problemName": "306. Additive Number", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/additive-number/", + "solutionLink": "#" + }, + { + "problemName": "307. Range Sum Query - Mutable", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/range-sum-query-mutable/", + "solutionLink": "#" + }, + { + "problemName": "308. range-sum-query-2d-mutable", + "difficulty": "Easy", + "leetCodeLink": "https://leetcode.com/problems/range-sum-query-2d-mutable/", + "solutionLink": "#" + }, + { + "problemName": "309. Best Time to Buy and Sell Stock with Cooldown", + "difficulty": "Hard", + "leetCodeLink": "https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/", + "solutionLink": "#" + }, + { + "problemName": "310. Minimum Height Trees", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/minimum-height-trees/", + "solutionLink": "#" + }, + { + "problemName": "311. sparse-matrix-multiplication", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/sparse-matrix-multiplication/", + "solutionLink": "#" + }, + { + "problemName": "312. Burst Balloons", + "difficulty": "Hard", + "leetCodeLink": "https://leetcode.com/problems/burst-balloons/", + "solutionLink": "#" + }, + { + "problemName": "313. Super Ugly Number", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/super-ugly-number/", + "solutionLink": "#" + }, + { + "problemName": "314. binary-tree-vertical-order-traversal", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/binary-tree-vertical-order-traversal/", + "solutionLink": "#" + }, + { + "problemName": "315. Count of Smaller Numbers After Self", + "difficulty": "Hard", + "leetCodeLink": "https://leetcode.com/problems/count-of-smaller-numbers-after-self/", + "solutionLink": "#" + }, + { + "problemName": "316. Remove Duplicate Letters", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/remove-duplicate-letters/", + "solutionLink": "#" + }, + { + "problemName": "317. shortest-distance-from-all-buildings", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/shortest-distance-from-all-buildings/", + "solutionLink": "#" + }, + { + "problemName": "318. Maximum Product of Word Lengths", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/maximum-product-of-word-lengths/", + "solutionLink": "#" + }, + { + "problemName": "319. Bulb Switcher", + "difficulty": "Easy", + "leetCodeLink": "https://leetcode.com/problems/bulb-switcher/", + "solutionLink": "#" + }, + { + "problemName": "320. generalized-abbreviation", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/generalized-abbreviation/", + "solutionLink": "#" + }, + { + "problemName": "321. Create Maximum Number", + "difficulty": "Hard", + "leetCodeLink": "https://leetcode.com/problems/create-maximum-number/", + "solutionLink": "#" + }, + { + "problemName": "322. Coin Change", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/coin-change/", + "solutionLink": "#" + }, + { + "problemName": "323. number-of-connected-components-in-an-undirected-graph", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/number-of-connected-components-in-an-undirected-graph/", + "solutionLink": "#" + }, + { + "problemName": "324. Wiggle Sort II", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/wiggle-sort-ii/", + "solutionLink": "#" + }, + { + "problemName": "325. maximum-size-subarray-sum-equals-k", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/maximum-size-subarray-sum-equals-k/", + "solutionLink": "#" + }, + { + "problemName": "326. Power of Three", + "difficulty": "Easy", + "leetCodeLink": "https://leetcode.com/problems/power-of-three/", + "solutionLink": "#" + }, + { + "problemName": "327. Count of Range Sum", + "difficulty": "Hard", + "leetCodeLink": "https://leetcode.com/problems/count-of-range-sum/", + "solutionLink": "#" + }, + { + "problemName": "328. Odd Even Linked List", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/odd-even-linked-list/", + "solutionLink": "#" + }, + { + "problemName": "329. Longest Increasing Path in a Matrix", + "difficulty": "Hard", + "leetCodeLink": "https://leetcode.com/problems/longest-increasing-path-in-a-matrix/", + "solutionLink": "#" + }, + { + "problemName": "330. Patching Array", + "difficulty": "Hard", + "leetCodeLink": "https://leetcode.com/problems/patching-array/", + "solutionLink": "#" + }, + { + "problemName": "331. Verify Preorder Serialization of a Binary Tree", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/", + "solutionLink": "#" + }, + { + "problemName": "332. Reconstruct Itinerary", + "difficulty": "Hard", + "leetCodeLink": "https://leetcode.com/problems/reconstruct-itinerary/", + "solutionLink": "#" + }, + { + "problemName": "333. largest-bst-subtree", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/largest-bst-subtree/", + "solutionLink": "#" + }, + { + "problemName": "334. Increasing Triplet Subsequence", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/increasing-triplet-subsequence/", + "solutionLink": "#" + }, + { + "problemName": "335. Self Crossing", + "difficulty": "Hard", + "leetCodeLink": "https://leetcode.com/problems/self-crossing/", + "solutionLink": "#" + }, + { + "problemName": "336. Palindrome Pairs", + "difficulty": "Hard", + "leetCodeLink": "https://leetcode.com/problems/palindrome-pairs/", + "solutionLink": "#" + }, + { + "problemName": "337. House Robber III", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/house-robber-iii/", + "solutionLink": "#" + }, + { + "problemName": "338. Counting Bits", + "difficulty": "Easy", + "leetCodeLink": "https://leetcode.com/problems/counting-bits/", + "solutionLink": "#" + }, + { + "problemName": "339. nested-list-weight-sum", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/nested-list-weight-sum/", + "solutionLink": "#" + }, + { + "problemName": "340. longest-substring-with-at-most-k-distinct-characters", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/longest-substring-with-at-most-k-distinct-characters/", + "solutionLink": "#" + }, + { + "problemName": "341. Flatten Nested List Iterator", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/flatten-nested-list-iterator/", + "solutionLink": "#" + }, + { + "problemName": "342. Power of Four", + "difficulty": "Easy", + "leetCodeLink": "https://leetcode.com/problems/power-of-four/", + "solutionLink": "#" + }, + { + "problemName": "343. Integer Break", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/integer-break/", + "solutionLink": "#" + }, + { + "problemName": "344. Reverse String", + "difficulty": "Easy", + "leetCodeLink": "https://leetcode.com/problems/reverse-string/", + "solutionLink": "#" + }, + { + "problemName": "345. Reverse Vowels of a String", + "difficulty": "Easy", + "leetCodeLink": "https://leetcode.com/problems/reverse-vowels-of-a-string/", + "solutionLink": "#" + }, + { + "problemName": "346. moving-average-from-data-stream", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/moving-average-from-data-stream/", + "solutionLink": "#" + }, + { + "problemName": "347. Top K Frequent Elements", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/top-k-frequent-elements/", + "solutionLink": "#" + }, + { + "problemName": "348. design-tic-tac-toe", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/design-tic-tac-toe/", + "solutionLink": "#" + }, + { + "problemName": "349. Intersection of Two Arrays", + "difficulty": "Easy", + "leetCodeLink": "https://leetcode.com/problems/intersection-of-two-arrays/", + "solutionLink": "#" + }, + { + "problemName": "350. Intersection of Two Arrays II", + "difficulty": "Easy", + "leetCodeLink": "350. Intersection of Two Arrays II", + "solutionLink": "#" + }, + { + "problemName": "351. android-unlock-patterns", + "difficulty": "Hard", + "leetCodeLink": "https://leetcode.com/problems/android-unlock-patterns/", + "solutionLink": "#" + }, + { + "problemName": "352. Data Stream as Disjoint Intervals", + "difficulty": "Hard", + "leetCodeLink": "https://leetcode.com/problems/data-stream-as-disjoint-intervals/", + "solutionLink": "#" + }, + { + "problemName": "353. design-snake-game", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/design-snake-game/", + "solutionLink": "#" + }, + { + "problemName": "354. Russian Doll Envelopes", + "difficulty": "Hard", + "leetCodeLink": "https://leetcode.com/problems/russian-doll-envelopes/", + "solutionLink": "#" + }, + { + "problemName": "355. Design Twitter", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/design-twitter/", + "solutionLink": "#" + }, + { + "problemName": "356. line-reflection", + "difficulty": "Hard", + "leetCodeLink": "https://leetcode.com/problems/line-reflection/", + "solutionLink": "#" + }, + { + "problemName": "357. Count Numbers with Unique Digits", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/count-numbers-with-unique-digits/", + "solutionLink": "#" + }, + { + "problemName": "358.rearrange-string-k-distance-apart", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/rearrange-string-k-distance-apart/", + "solutionLink": "#" + }, + { + "problemName": "359. logger-rate-limiter", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/logger-rate-limiter/", + "solutionLink": "#" + }, + { + "problemName": "360. sort-transformed-arrayt", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/sort-transformed-array/", + "solutionLink": "#" + }, + { + "problemName": "361. bomb-enemy", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/bomb-enemy/", + "solutionLink": "#" + }, + { + "problemName": "362. design-hit-counter", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/design-hit-counter/", + "solutionLink": "#" + }, + { + "problemName": "363. Max Sum of Rectangle No Larger Than K", + "difficulty": "Hard", + "leetCodeLink": "https://leetcode.com/problems/max-sum-of-rectangle-no-larger-than-k/", + "solutionLink": "#" + }, + { + "problemName": "364. nested-list-weight-sum-ii", + "difficulty": "Hard", + "leetCodeLink": "https://leetcode.com/problems/nested-list-weight-sum-ii/", + "solutionLink": "#" + }, + { + "problemName": "365. Water and Jug Problem", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/water-and-jug-problem/", + "solutionLink": "#" + }, + { + "problemName": "366. find-leaves-of-binary-tree", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/find-leaves-of-binary-tree/", + "solutionLink": "#" + }, + { + "problemName": "367. Valid Perfect Square", + "difficulty": "Easy", + "leetCodeLink": "https://leetcode.com/problems/valid-perfect-square/", + "solutionLink": "#" + }, + { + "problemName": "368. Largest Divisible Subset", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/largest-divisible-subset/", + "solutionLink": "#" + }, + { + "problemName": "369. plus-one-linked-list", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/plus-one-linked-list/", + "solutionLink": "#" + }, + { + "problemName": "370. range-addition", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/range-addition/", + "solutionLink": "#" + }, + { + "problemName": "371. Sum of Two Integers", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/sum-of-two-integers/", + "solutionLink": "#" + }, + { + "problemName": "372. Super Pow", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/super-pow/", + "solutionLink": "#" + }, + { + "problemName": "373. Find K Pairs with Smallest Sums", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/find-k-pairs-with-smallest-sums/", + "solutionLink": "#" + }, + { + "problemName": "374. Guess Number Higher or Lower", + "difficulty": "Easy", + "leetCodeLink": "https://leetcode.com/problems/guess-number-higher-or-lower/", + "solutionLink": "#" + }, + { + "problemName": "375. Guess Number Higher or Lower II", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/guess-number-higher-or-lower-ii/", + "solutionLink": "#" + }, + { + "problemName": "376. Wiggle Subsequence", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/wiggle-subsequence/", + "solutionLink": "#" + }, + { + "problemName": "377. Combination Sum IV", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/combination-sum-iv/", + "solutionLink": "#" + }, + { + "problemName": "378. Kth Smallest Element in a Sorted Matrix", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/", + "solutionLink": "#" + }, + { + "problemName": "379. design-phone-directory", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/design-phone-directory/", + "solutionLink": "#" + }, + { + "problemName": "380. Insert Delete GetRandom O(1)", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/insert-delete-getrandom-o1/", + "solutionLink": "#" + }, + { + "problemName": "381. Insert Delete GetRandom O(1) - Duplicates allowed", + "difficulty": "Hard", + "leetCodeLink": "https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed/", + "solutionLink": "#" + }, + { + "problemName": "382. Linked List Random Node", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/linked-list-random-node/", + "solutionLink": "#" + }, + { + "problemName": "383. Ransom Note", + "difficulty": "Easy", + "leetCodeLink": "https://leetcode.com/problems/ransom-note/", + "solutionLink": "#" + }, + { + "problemName": "384. Shuffle an Array", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/shuffle-an-array/", + "solutionLink": "#" + }, + { + "problemName": "385. Mini Parser", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/mini-parser/", + "solutionLink": "#" + }, + { + "problemName": "386. Lexicographical Numbers", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/lexicographical-numbers/", + "solutionLink": "#" + }, + { + "problemName": "387. First Unique Character in a String", + "difficulty": "Easy", + "leetCodeLink": "https://leetcode.com/problems/first-unique-character-in-a-string/", + "solutionLink": "#" + }, + { + "problemName": "388. Longest Absolute File Path", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/longest-absolute-file-path/", + "solutionLink": "#" + }, + { + "problemName": "389. Find the Difference", + "difficulty": "Easy", + "leetCodeLink": "https://leetcode.com/problems/find-the-difference/", + "solutionLink": "#" + }, + { + "problemName": "390. Elimination Game", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/elimination-game/", + "solutionLink": "#" + }, + { + "problemName": "391. Perfect Rectangle", + "difficulty": "Hard", + "leetCodeLink": "https://leetcode.com/problems/perfect-rectangle/", + "solutionLink": "#" + }, + { + "problemName": "392. Is Subsequence", + "difficulty": "Easy", + "leetCodeLink": "https://leetcode.com/problems/is-subsequence/", + "solutionLink": "#" + }, + { + "problemName": "393. UTF-8 Validation", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/utf-8-validation/", + "solutionLink": "#" + }, + { + "problemName": "394. Decode String", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/decode-string/", + "solutionLink": "#" + }, + { + "problemName": "395. Longest Substring with At Least K Repeating Characters", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters/", + "solutionLink": "#" + }, + { + "problemName": "396. Rotate Function", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/rotate-function/", + "solutionLink": "#" + }, + { + "problemName": "397. Integer Replacement", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/integer-replacement/", + "solutionLink": "#" + }, + { + "problemName": "399. Random Pick Index", + "difficulty": "Medium", + "leetCodeLink": "https://leetcode.com/problems/random-pick-index/", + "solutionLink": "#" + } +] + +