Giter Site home page Giter Site logo

rohantrix / competitive-practice Goto Github PK

View Code? Open in Web Editor NEW
18.0 3.0 1.0 47.93 MB

My solutions of different Competitive Programming questions from different websites

Python 5.88% Java 93.66% C++ 0.46%
cp competitive-programming leetcode hackerrank codechef codeforces hackerearth solutions atcoder-educational-dp

competitive-practice's Introduction

Completed Problems


██▓▒­░⡷⠂Leetcode⠐⢾░▒▓██

Leetcode

  1. Sort Colors
  2. Maximum Subarray
  3. Last Stone Weight
  4. Find The Duplicate Number --IMP --Revise
  5. Determine if Two Strings Are Close
  6. Design an Ordered Stream
  7. Minimum Operations to Reduce X to Zero
  8. House Robber (DP)
  9. Coin Change 2 (DP)
  10. Coin Change (DP)
  11. Edit Distance(DP) --IMP --Hard
  12. Longest_Common_Subsequence (DP)
  13. Jump Game II (DP) --Revise --IMP
  14. First Unique Character in a String
  15. Best Time to Buy and Sell Stock (DP)
  16. Best Time to Buy and Sell Stock 2 (DP)
  17. Best Time to Buy and Sell Stock 3 (DP) --Hard --Revise
  18. Best Time to Buy and Sell Stock 4 (DP) --Hard --Revise
  19. Jump Game (Greedy)
  20. Richest Customer Wealth
  21. Find the Most Competitive Subsequence (Stack) --IMP
  22. Maximum Depth of Binary Tree (Tree)
  23. Shortest Word Distance (Two-pointer)
  24. Linked List Random Node (Randomized Algo) --IMP
  25. Two Sum
  26. Binary Tree Inorder Traversal (Tree)
  27. Increasing_Order_Search_Tree (Tree)
  28. The kth Factor of n
  29. Can Place Flowers
  30. Goal Parser Interpretation
  31. Max Number of K-Sum Pairs
  32. Populating Next Right Pointers in Each Node II
  33. Spiral Matrix II
  34. Pairs of Songs With Total Durations Divisible by 60
  35. Binary Search Tree Iterator (Tree)
  36. Valid Mountain Array
  37. Remove Duplicates from Sorted Array II
  38. Count the Number of Consistent Strings
  39. Sum of Absolute Differences in a Sorted Array
  40. Smallest Subtree with all the Deepest Nodes
  41. Burst Baloons (LR DP) --IMP Concept --Hard
  42. Palindrome Partitioning (Backtracking) --IMP
  43. Squares of a Sorted Array
  44. Plus One Linked List
  45. Validate Binary Search Tree (BST) --IMP
  46. 4Sum II
  47. Increasing Triplet Subsequence --IMP
  48. Cherry Pickup II
  49. Decoded String at Index --Hard
  50. Smallest Range II --Tricky --Revise
  51. Swap Nodes in Pairs --Revise
  52. Diagonal Traverse
  53. Number of Students Unable to Eat Lunch
  54. Average Waiting Time
  55. Determine if String Halves Are Alike
  56. Middle of the Linked List
  57. Rotate List
  58. Reverse Linked List
  59. Jump Game IV (BFS) --IMP
  60. Reach a Number --Tricky --IMP
  61. Partition Equal Subset Sum (DP)
  62. Target Sum (DP) --IMP
  63. Combination Sum (DP) (Backtracing) --IMP --Revise
  64. Combination Sum II (Backtracking) --IMP --Revise
  65. Maximum Number of Balls in a Box
  66. Number of 1 Bits
  67. Trim a Binary Search Tree (Tree)
  68. Linked List Cycle
  69. Search in a Binary Search Tree (Tree)
  70. Arithmetic Slices (DP) --IMP --Revise
  71. Number of Islands (DFS on grid) (Graphs)
  72. Distribute Candies
  73. Set Mismatch
  74. Missing Number
  75. Intersection of Two Linked Lists
  76. Average of Levels in Binary Tree
  77. Short Encoding of Words --Revise
  78. Design HashMap
  79. Remove Palindromic Subsequences
  80. Add One Row to Tree (Tree) --Revise
  81. Integer to Roman
  82. Check If a String Contains All Binary Codes of Size K --Revise
  83. Binary Trees With Factors (DP) --Revise ---IMP
  84. Swapping Nodes in a Linked List
  85. Best Time to Buy and Sell Stock with Transaction Fee (DP) --Revise ---IMP
  86. Invert Binary Tree (Tree)
  87. Add Two Numbers
  88. Wiggle Subsequence (DP) --Revise --IMP
  89. Max Consecutive Ones III (Slding Window) --IMP
  90. Keys and Rooms (DFS)
  91. Longest Substring Without Repeating Characters (Sliding Window)
  92. Course Schedule (Graphs) --IMP
  93. Second Largest Digit in a String
  94. Design Authentication Manager
  95. Reordered Power of 2
  96. Find a Corresponding Node of a Binary Tree in a Clone of That Tree (Tree)
  97. Sum of Nodes with Even-Valued Grandparent (Tree)
  98. Deepest Leaves Sum (Tree)
  99. Range Sum of BST (Tree)
  100. Binary Search (Binary Search)
  101. Valid Square
  102. Check if the Sentence Is Pangram
  103. Maximum Ice Cream Bars (Sorting)
  104. Replace All Digits with Characters
  105. Seat Reservation Manager
  106. Maximum Element After Decreasing and Rearranging (Sorting)
  107. Range Sum of Sorted Subarray Sums (Prefix Sum)
  108. Range Sum Query 2D - Immutable (DP)
  109. Minimum Distance to the Target Element
  110. Splitting a String Into Descending Consecutive Values (Backtracking)
  111. Next Permutation --Revise --IMP
  112. Non-decreasing Array --Revise --Tricky
  113. Path Sum (Tree)
  114. Search in Rotated Sorted Array (Binary Search)
  115. Climbing Stairs (DP)
  116. Convert Sorted List to Binary Search Tree (DnC) (Tree) --Revise --Tricky
  117. Find First and Last Position of Element in Sorted Array (Binary Search) --IMP
  118. First Bad Version (Binary Search)
  119. Rotting Oranges (BFS)
  120. Delete Operation for Two Strings (DP)
  121. Capacity To Ship Packages Within D Days (Binary Search) --Revise --IMP
  122. Koko Eating Bananas (Binary Search) --Revise
  123. Maximum Population Year
  124. Maximum Distance Between a Pair of Values (Binary Search)
  125. Split Array Largest Sum (Binary Search) --Revise --Hard
  126. Maximum Points You Can Obtain from Cards (Sliding Window) (Prefix Sum)
  127. Minimum Number of Days to Make m Bouquets (Binary Search) --Revise
  128. Sorting the Sentence
  129. Incremental Memory Leak
  130. Rotating the Box
  131. Daily Temperatures( Monotonic Stack)
  132. Product of Array Except Self --IMP
  133. Maximum Erasure Value (Slidign Window)
  134. Out of Boundary Paths (DP)
  135. 3Sum (Two Pointer)
  136. Find K Closest Elements (Binary Search) --IMP --Tricky --Revise
  137. Maximum Product Difference Between Two Pairs (Sorting)
  138. Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold (Sliding Window)
  139. Same Tree (Tree)
  140. Symmetric Tree (Tree)
  141. Kth Smallest Element in a BST (Tree)
  142. Eliminate Maximum Number of Monsters (Greedy) (Priority Queue) --IMP
  143. All Paths From Source to Target (Graphs) (DFS) --IMP
  144. Video Stitching (DP) (Greedy) --Revise
  145. Max Area of Island (DFS)
  146. Island Perimeter (DFS)
  147. Path Sum II (Tree) (DFS)
  148. Reduce Array Size to The Half
  149. Merge k Sorted Lists (Linked List) --HARD --Revise
  150. Merge Intervals (Greedy)
  151. Two City Scheduling (Greedy)
  152. Minimum Number of Arrows to Burst Balloons (Greedy) (Line Sweep)
  153. Find Bottom Left Tree Value (Tree)
  154. Combination Sum III (Backtracking)
  155. Smallest Range I
  156. Valid Triangle Number (Two Pointer)
  157. Non-Overlapping Intervals (Greedy)
  158. Remove Nth Node From End of List
  159. Maximum Profit in Job Scheduling (DP + Binary Search) --Hard --IMP
  160. Surrounded Regions (DFS)
  161. Nearest Exit from Entrance in Maze (BFS)
  162. Course Schedule II (Graphs) (Topsort)
  163. Nim Game
  164. Delete and Earn (DP) --IMP --Revise --Tricky
  165. Contains Duplicate
  166. Maximum Difference Between Node and Ancestor (Tree) --IMP
  167. Unique Paths (DP)
  168. Binary Tree Pruning (Tree)
  169. Minimum ASCII Delete Sum for Two Strings (DP)
  170. 3Sum Closest (Two Pointer)
  171. Matrix Block Sum (Prefix Sum)
  172. Decrease Elements To Make Array Zigzag --Revise
  173. Reverse Words in a String III
  174. Find Minimum Time to Finish All Jobs (Binary Search) (DFS) --Revise --IMP --Hard
  175. Minimum Limit of Balls in a Bag (Binary Search) --Tricky --Revise
  176. Longest Happy Prefix (KMP)
  177. Shortest Palindrome (KMP)
  178. Stone Game (Greedy)
  179. Minimum Path Sum (Grid DP)
  180. Jump Game III (BFS)
  181. Plus One
  182. Critical Connections in a Network (Graphs) (Bridges) --Hard --Revise
  183. Minimum Height Trees (Graphs) (Center of Tree) --IMP
  184. Kth Ancestor of a Tree Node (Graphs) (Binary Lifting) --IMP --Hard
  185. Design Add and Search Words Data Structure (Trie)
  186. Last Day Where You Can Still Cross (Binary Search) (BFS)
  187. Array With Elements Not Equal to Average of Neighbors
  188. Group the People Given the Group Size They Belong To
  189. Number of Substrings With Only 1s
  190. Binary Tree Maximum Path Sum --Revise --IMP
  191. Count Vowels Permutation (DP)
  192. Sum of Even Numbers After Queries
  193. Palindromic Substrings (DP)
  194. Longest Palindromic Substring (DP) --Revise --IMP
  195. Minimum Number of Vertices to Reach All Nodes (Graph) --Revise
  196. Redundant Connection (DSU)
  197. Binary Tree Zigzag Level Order Traversal (Tree) (BFS)
  198. Minimum Size Subarray Sum (Sliding Window)
  199. Longest Palindromic Subsequence (DP) --Revise
  200. Contiguous Array --IMP CONCEPT __Revise
  201. Number of Ways to Arrive at Destination (Graphs) (Dijkstra) --IMP
  202. Array Nesting (DSU)
  203. Path with Maximum Probability (Graphs) (Dijkstra)
  204. Top K Frequent Elements (Bucket Sort) --IMP concept
  205. Unique Paths II (DP)
  206. Number of Operations to Make Network Connected (DSU)
  207. Find Minimum in Rotated Sorted Array (Binary Search)
  208. Global and Local Inversions (Merge Sort) --IMP Concept
  209. Find Eventual Safe States (Graphs) (DFS)
  210. Longest Increasing Subsequence (DP)
  211. Letter Combinations of a Phone Number (Backtracking)
  212. Maximal Square (DP)
  213. Word Break (DP)
  214. Palindrome Partitioning II (DP) (DnC DP)
  215. Stone Game II (DP) (Game Theory)
  216. Stone Game VII (DP) (Game Theory)
  217. House Robber II (DP)
  218. Maximum Length of Pair Chain (DP)
  219. Convert BST to Greater Tree (BST)
  220. Complete Binary Tree Inserter (Tree)
  221. Construct K Palindrome Strings
  222. Cherry Pickup (DP) (Grid DP) --IMP concept
  223. Decode Ways (DP)
  224. Insertion Sort List (Linked List) --IMP
  225. Binary Tree Level Order Traversal II
  226. Word Ladder (BFS)
  227. Numbers At Most N Given Digit Set (Digit DP) --IMP Concept --HARD
  228. Word Ladder II (BFS) --Hard
  229. Decode String
  230. Stone Game III (DP) (Game Theory) --HARD --IMP
  231. Decode XORed Array
  232. Maximum XOR With an Element From Array (Sorting + BIT Trie) --HARD --IMP
  233. Maximum XOR of Two Numbers in an Array (BIT Trie) --Revise
  234. Merge In Between Linked Lists (Linked List)
  235. Maximum Score from Performing Multiplication Operations (DP)
  236. Binary Subarrays With Sum (Sliding Window + HashMap) --IMP --Tricky --Revise
  237. Subarray Sum Equals K (Sliding Window + HashMap) --IMP --Tricky --Revise
  238. Graph Connectivity With Threshold (DSU + Seive) --Hard
  239. Balance a Binary Search Tree (BST)
  240. Furthest Building You Can Reach (Greedy) (Priority Queue) --IMP
  241. Network Delay Time (Graphs) (Dijkstra)
  242. Longest Substring with At Least K Repeating Characters (Sliding Window) --New CONCEPT --IMP
  243. Longest Increasing Path in a Matrix (DP + DFS on matrix) --Concept --IMP --HARD
  244. Max Increase to Keep City Skyline
  245. Car Pooling (Partial and Prefix Sums) --Revise
  246. Maximum Fruits Harvested After at Most K Steps (Prefix Sums) --HARD --IMP --Revise
  247. Count Servers that Communicate
  248. Maximum Score Words Formed by Letters
  249. Number of Laser Beams in a Bank
  250. Destroying Asteroids (Sorting)
  251. Execution of All Suffix Instructions Staying in a Grid
  252. Intervals Between Identical Elements (Prefix Sum) --IMP --Revise
  253. Evaluate Reverse Polish Notation (Stack)
  254. Maximum Twin Sum of a Linked List
  255. Longest Palindrome by Concatenating Two Letter Words
  256. Robot Bounded In Circle --Tricky --Revise
  257. Minimum Swaps to Group All 1's Together II (Sliding Window) --IMP --Revise
  258. Count Words Obtained After Adding a Letter (Trie) --Revise
  259. Increasing Subsequences (Backtrack) --Tricky --Revise --IMP
  260. Sliding Window Maximum (Monotonic Queue) --IMP
  261. Max Value of Equation (Monotonic Queue) --Tricky for Monoque
  262. Maximal Network Rank (Graphs)
  263. Trapping Rain Water (Greedy) --IMP
  264. Count Good Meals --Tricky
  265. Maximum Number of Coins You Can Get (Sorting) (Greedy)
  266. Palindrome Partitioning III (DP) --IMP --Revise
  267. Palindrome Partitioning IV (DP) --IMP --Revise
  268. Earliest Possible Day of Full Bloom (Greedy)
  269. Stone Game IV (DP) (Game Theory)
  270. Stone Game V (DnC DP)
  271. Stone Game VI (Greedy) --IMP --Revise
  272. Maximum Level Sum of a Binary Tree (BFS)
  273. Stone Game VIII (Game Theory DP) --Tricky Optimization --Revise
  274. Sum of Subarray Ranges (MonoStack) --Tricky --V IMP
  275. Sum of Subarray Minimums (MonoStack)
  276. Maximize Distance to Closest Person (Two Pointer)
  277. Dungeon Game (Grid DP) --Very IMP --Tricky
  278. Solving Questions With Brainpower (Knapsack DP)
  279. Container With Most Water (Two Pointer) (Greedy) --IMP
  280. Delete Node in a BST --Tricy --IMP --Revise
  281. Linked List Cycle II
  282. Minimum Swaps To Make Sequences Increasing (DP) --IMP
  283. Closest Divisors
  284. Constrained Subsequence Sum (DP + MonoQueue) --New Concept --TOUGH --IMP --Revise
  285. Remove Sub-Folders from the Filesystem (Trie)
  286. Count Primes (Seive of Eratothenes)
  287. Number of Pairs of Interchangeable Rectangles
  288. Maximum Height by Stacking Cuboids (DP) --TOUGH --IMP --Revise
  289. Gas Station (Two Pointer) --Tricky
  290. Closest Dessert Cost (Backtracking) --Concept Revise
  291. Shortest Subarray with Sum at Least K (Monoqueue+Prefix Sum) --V.V.IMP --Must Revise
  292. Count Good Nodes in Binary Tree (DFS)
  293. Count the Hidden Sequences (Math) --Read editorial
  294. Path with Maximum Gold (Backtracking)
  295. Sequential Digits
  296. Partition Labels (Two Pointer)
  297. Maximum Length of Subarray With Positive Product (DP) --IMP --Must Revise
  298. Range Sum Query - Mutable (Segment Tree)
  299. Perfect Rectangle (Observation Based)
  300. Watering Plants
  301. Longest Word in Dictionary through Deleting (Two Pointer)
  302. The Skyline Problem (SweepLine) --Must Revise
  303. Number of Provinces (DSU)
  304. K Closest Points to Origin (PriorityQueue)
  305. Integer Replacement (DP)
  306. All Elements in Two Binary Search Trees (BST) --Concept --Revise
  307. Print Words Vertically
  308. Minimum Number of Taps to Open to Water a Garden (Greedy) --Concept
  309. The k-th Lexicographical String of All Happy Strings of Length n
  310. Minimize Maximum Pair Sum in Array (Greedy)
  311. Rotate Array --Tricky --Revise --IMP
  312. Shortest Common Supersequence (DP)
  313. Partitioning Into Minimum Number Of Deci-Binary Numbers
  314. Task Scheduler (Priority Queue) --Revise --Imp --Tricky
  315. Number of Enclaves (DFS on grid)
  316. Number of Closed Islands (DFS on Grid) --Revise
  317. Check If Array Pairs Are Divisible by k --Tricky --V. IMP --CONCEPT --Revise
  318. Find All Anagrams in a String (Fixed Sliding Window)
  319. Count Number of Teams (Prefix and Suffix Count) --V.IMP --Concept -- Revise
  320. Minimum Number of Increments on Subarrays to Form a Target Array --V. V. Tricky
  321. Numbers With Same Consecutive Differences (Recursion)
  322. Reducing Dishes (Knapsack Type DP)
  323. Predict the Winner (Game Theory DP)
  324. Word Search (DFS)
  325. Relative Sort Array (Coordinate Compression)
  326. Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts (Greedy) --IMP --Revise
  327. Grid Game (Prefix Sum)
  328. Map Sum Pairs (Trie)
  329. Minimum Interval to Include Each Query (Line Sweep) --Tough --Concept
  330. Partition Array According to Given Pivot
  331. Remove K Digits (Monotonic Queue)
  332. Majority Element (Majority Vote Algorithm) --IMP --Revise
  333. Number of Orders in the Backlog (2 Heaps) --Solved in One go
  334. K-diff Pairs in an Array (HashMap)
  335. Letter-case Permutation
  336. Distribute Coins in Binary Tree (DFS) --Tricky --IMP
  337. Delete Leaves With a Given Value (PostOrder)
  338. Candy (Greedy) --CONCEPT --Tricky --IMP --REVISE
  339. Meeting Rooms II (Sweep Line) (Solved on InterviewBit)
  340. Shortest Path with Alternating Colors (BFS) --CONCEPT --Tricky
  341. Unique Binary Search Trees II (DnC algorithm) --IMP --REVISE
  342. Minimize Hamming Distance After Swap Operations (Union Find) --Concept with implementation heavy
  343. Permutation in String (Fixed Sliding Window)
  344. Subsets
  345. Largest Divisible Subset (DP) --Tricky
  346. Maximum Number of Vowels in a Substring of Given Length (Fixed Sliding Window)
  347. Min Cost to Connect All Points (Kruskal MST) --Revise --IMP
  348. Smallest String With Swaps (DSU) --IMP
  349. Minimum Operations to Make the Array Alternating
  350. Removing Minimum Number of Magic Beans (Prefix Sum) --CONCEPT --IMP
  351. Permutations (Backtracking)
  352. Additive Number (Backtracking) --Crazy Tricky level
  353. Max Chunks To Make Sorted (Greedy) --IMP
  354. Minimum Elements to Add to Form a Given Sum
  355. Max Chunks To Make Sorted II (Greedy) --CONCEPT --IMP
  356. Minimize Deviation in Array (Greedy) --IMP --HARD --Revise --Tricky
  357. Insert Delete GetRandom O(1) --Tricky
  358. Find Three Consecutive Integers That Sum to a Given Number
  359. Maximum Split of Positive Even Integers
  360. Remove Covered Intervals (Greedy)
  361. Lowest Common Ancestor of a Binary Tree(Tree) --Revise
  362. Merge Nodes in Between Zeros
  363. Construct String With Repeat Limit (Greedy)
  364. Sum of Distances in Tree (Tree DP) --HARD --Tricky --IMP --REVISE --Concept
  365. Longest ZigZag Path in a Binary Tree (Tree DP) --IMP
  366. Minimum Remove to Make Valid Parentheses (Stack) --Tricky --Revise
  367. Find K-th Smallest Pair Distance (Binary Search + Sliding Window) --V Tough --Concept
  368. Count Array Pairs Divisible by K (HashMap + Math) --Concept --IMP
  369. Minimum Deletions to Make String Balanced (DP) --IMP --Revise
  370. Longest Repeating Character Replacement (Sliding Window)
  371. Number of Sub-arrays With Odd Sum (Prefix Sum) --IMP --REVISE
  372. Subarray Sums Divisible by K (Prefix Sum) --IMP --REVISE
  373. Max Sum of Rectangle No Larger Than K (Prefix Sum + TreeSet)
  374. Sort List (Merge Sort) --IMP
  375. Maximum Sum Obtained of Any Permutation (Partial Sums)
  376. Reverse Substrings Between Each Pair of Parentheses (Stack + Queue)
  377. Reverse Nodes in k-Group --Implementation Heavy
  378. Longest Consecutive Sequence (DSU) --IMP --Revise
  379. Shortest Path Visiting All Nodes (Graphs + DP) --Tricky --HARD
  380. Minimum Number of Steps to Make Two Strings Anagram II
  381. Minimum Time to Complete Trips (Binary Search)
  382. Numbers With Repeated Digits (Digit DP) --IMP --Revise
  383. Maximum Width of Binary Tree (Tree) --V.V IMP
  384. Evaluate Division (Graphs)
  385. Vowels of All Substrings --Concept
  386. Most Stones Removed with Same Row or Column (DSU)
  387. Largest Component Size by Common Factor (DSU + Number Theory) --Concept --IMP --Revise
  388. Queens That Can Attack the King
  389. Combination Sum IV (DP) --IMP --REVISE
  390. Maximum Alternating Subsequence Sum (DP) --IMP --REVISE
  391. Group Anagrams
  392. Least Number of Unique Integers after K Removals (Greedy) --Revise
  393. Maximum Score of a Good Subarray (Two Pointers) --Tricky Implementation
  394. Minimum Cost to Cut a Stick (DnC DP) --Tricy --Concept
  395. Minimum Time to Collect All Apples in a Tree (DFS) --Revise
  396. XOR Queries of a Subarray
  397. Count of Smaller Numbers After Self (Segment Tree) --IMP --REVISE
  398. Minimum Flips to Make a OR b Equal to c
  399. Maximum XOR for Each Query
  400. Find Duplicate Subtrees (Tree)
  401. Binary String With Substrings Representing 1 To N
  402. Is Graph Bipartite (Graphs)
  403. Champagne Tower (DP)
  404. Sort the Jumbled Numbers
  405. All Ancestors of a Node in a Directed Acyclic Graph (Graphs) --IMP --Revise
  406. Minimum Number of Moves to Make Palindrome (Two Pointers) --Hard --IMP -Revise
  407. Count Complete Tree Nodes (Tree) --Revise --IMP
  408. Remove Duplicates from Sorted List II (LinkedList)
  409. Longest Univalue Path (Tree DP)
  410. Insert Interval
  411. Copy List with Random Pointer --Tricky
  412. Next Greater Element II (Monotonic Stack) --IMP
  413. Next Greater Element III (Greedy) --IMP
  414. Minimum Insertion Steps to Make a String Palindrome (DP) -IMP
  415. Simplify Path (Stack)
  416. Word Break II (DP)
  417. HTML Entity Parser
  418. Maximum Width Ramp (TreeMap) --IMP --Revise
  419. Remove Max Number of Edges to Keep Graph Fully Traversable (2 DSU approach) --IMP --Revise
  420. Validate Stack Sequences (Stack)
  421. Score of Parentheses (Stack) Tough --Revise
  422. Find Two Non-overlapping Sub-arrays Each With Target Sum (Prefix Sum, Suffix Min) --CONCEPT --IMP --Hard
  423. Parsing A Boolean Expression (Stack)
  424. Remove Duplicate Letters (Monostack) --Tricky --IMP --Revise
  425. Reverse Integer
  426. Smallest Subsequence of Distinct Characters (Monostack)
  427. Evaluate the Bracket Pairs of a String (Stack)
  428. Binary Tree Right Side View (BFS)
  429. Maximum Frequency Stack (Stack + Design) --HARD --Revise
  430. Minimum Domino Rotations For Equal Row (Greedy) --Tricky --Revise
  431. 2 Keys Keyboard (DP)
  432. Simplified Fractions
  433. Smallest String With A Given Numeric Value (Greedy)
  434. Ways to Split Array Into Three Subarrays (Prefix Sum + Binary Search) --Tricky --Revise** --IMP
  435. Broken Calculator (Math)
  436. Boats to Save People (Two Pointers)
  437. Maximum Sum Circular Subarray (Kadane Algo) --IMP --Revise --Concept
  438. Total Hamming Distance (Bit Manip) --IMP --Revise
  439. Flatten Binary Tree to Linked List (Binary Tree) --IMP --TRICKY --HARD
  440. Design a Stack With Increment Operation
  441. Guess Number Higher or Lower II (DP) --Revise
  442. Minimum Deletions to Make Character Frequencies Unique (Greedy) --Revise --**IMP
  443. Continuous Subarray Sum (HashMap + Prefix Sum) --Logic similar to Subarray Sums Divisible by K
  444. 3Sum With Multiplicity (HashMap) --IMP --Revise
  445. Count Triplets That Can Form Two Arrays of Equal XOR (Prefix Xor) --CONCEPT --IMP --Revise
  446. Find the Longest Substring Containing Vowels in Even Counts (Bitmask + HashMap) --Concept
  447. Longest Word in Dictionary (Trie)
  448. LRU Cache (Double Linked List + HashMap) --Popular --Must Revise
  449. Game of Life
  450. Maximum Product After K Increments (Priority Queue)
  451. Find Players With Zero or One Losses
  452. Path Sum III (Subarray sum = k technique on Tree) --IMP
  453. Can I Win (Bitmask DP) --Tight Constraints
  454. Minimum Number of Operations to Reinitialize a Permutation
  455. Shortest Path to Get All Keys (BFS + Bitmask) --CONCEPT --Revise
  456. Groups of Special-Equivalent Strings (DSU + Implementation Heavy)
  457. Minimum Falling Path Sum II (Grid DP)
  458. Minimum Falling Path Sum (Grid DP)
  459. First Missing Positive --IMP --Revise --HARD
  460. Partition Array for Maximum Sum (DP)
  461. Minimum Sideway Jumps (DP)
  462. All Possible Full Binary Trees (DP) --Tricky --IMP
  463. Number of Ways to Stay in the Same Place After Some Steps (DP)
  464. Adding Spaces to a String
  465. Number of Smooth Descent Periods of a Stock (DP)
  466. Minimum Operations to Make the Array K-Increasing (Binary Search LIS variation) --CONCEPT --IMP --Tricky --Revise
  467. Allocate Mailboxes (DP) --Tough --Revise --Concept
  468. Best Sightseeing Pair (TreeSet/PriorityQueue/DP)
  469. Number of Ways to Split a String (Combinatorics + Prefix Sum) --IMP --Revise
  470. Minimum Cost to Connect Two Groups of Points (Bitmask DP) --Tricky Optimization --Tough
  471. Change Minimum Characters to Satisfy One of Three Conditions --IMP --Tricky Brute Force
  472. Path With Minimum Effort (Binary Search + DFS) --Concept
  473. Heaters (Binary Search)
  474. Most Profit Assigning Work (Greedy+Sorting) --Revise --IMP
  475. Ways to Make a Fair Array (Prefix Sum)
  476. Range Frequency Queries (Binary Search) --Revise --IMP --Concept
  477. Find the Minimum Number of Fibonacci Numbers Whose Sum Is K (Greedy) --Revise
  478. Minimum Average Difference (Prefix Sum)
  479. Count Unguarded Cells in the Grid (Simulation)
  480. Escape the Spreading Fire (Binary Search + Multi Source BFS) --CONCEPT --Implementation Heavy
  481. Count Number of Homogenous Substrings
  482. Shortest Unsorted Continuous Subarray (Prefix Max + Suffix Min) --CONCEPT
  483. Different Ways to Add Parentheses (DnC DP) --Revise --IMP
  484. Maximum Score From Removing Stones (PriorityQueue)
  485. All O`one Data Structure
  486. Word Subsets --IMP --REVISE --Tricky
  487. Number of Substrings Containing All Three Characters (Sliding Window) --IMP --Revise
  488. Longest Subarray of 1's After Deleting One Element
  489. Remove All Adjacent Duplicates in String II (Stack)
  490. Count Number of Nice Subarrays (Sliding Window) --IMP --REVISE --CONCEPT
  491. 132 Pattern (Prefix Min + TreeMap) --IMP --REVISE**
  492. Flatten Nested List Iterator (Recursion)
  493. Knight Probability in Chessboard (DP) --IMP
  494. Count Sorted Vowel Strings
  495. Permutations II (Backtracking) --IMP --REVISE
  496. Corporate Flight Bookings (Partial Sum)
  497. Shortest Path in Binary Matrix (BFS)
  498. Queries on Number of Points Inside a Circle (Brute Force)
  499. Rank Teams by Votes
  500. RLE Iterator
  501. Find Largest Value in Each Tree Row
  502. Making A Large Island (DSU)
  503. Delete Columns to Make Sorted II --Revise --Tricky
  504. Check if Number is a Sum of Powers of Three
  505. Maximum Bags With Full Capacity of Rocks
  506. Minimum Lines to Represent a Line Chart
  507. Sum of Total Strength of Wizards (Prefix Sum + Monotonic Stack) --IMP --HARD --Implementation Heavy
  508. Ones and Zeroes (DP)
  509. Minimize Malware Spread (DSU) --IMP --Revise
  510. Longest Valid Parathesis (Stack) --IMP --Revise --CONCEPT
  511. 4Sum (Two Pointers) --IMP --Revise
  512. Russian Doll Envelopes (Binary Search LIS) --V.IMP --Revise --Concept
  513. Letter Tile Possibilities (Backtacking)
  514. Flower Planting With No Adjacent (Graphs Coloring)
  515. Triples with Bitwise AND Equal To Zero (Brute Force)
  516. Minimum Area Rectangle (HashMap) --Revise --IMP
  517. Reorder List (LinkedList)
  518. Minimum Area Rectangle II (HashMap) --Revise --IMP
  519. Partition List (LinkedList)
  520. Rotate Image --IMP --Revise
  521. Number of Dice Rolls With Target Sum (DP)
  522. Maximum Length of a Concatenated String with Unique Characters (Backtracking)
  523. Minimum Number of Work Sessions to Finish the Tasks (Bitmask DP)
  524. Word Search II (Backtracking + Trie)
  525. Maximum Product of Word Lengths (Bitmask)
  526. Count Nodes Equal to Average of Subtree
  527. Maximum Absolute Sum of Any Subarray (Kadanes)
  528. Cutting Ribbons (Binary Search) (Premium Qs solved on binarysearch.com) --IMP --Revise
  529. Break a Palindrome (Greedy) --IMP --Revise
  530. Implement Trie (Prefix Tree) (Trie)
  531. Replace Words (Trie)
  532. Permutation Sequence (Greedy) --IMP --Revise
  533. Factorial Trailing Zeroes (Math) --IMP --Revise
  534. Sum Root to Leaf Numbers
  535. Spiral Matrix
  536. Set Matrix Zeroes --IMP --Tricky
  537. Number of Good Ways to Split a String (Prefix and Suffix)
  538. Restore The Array (DP)
  539. Single Element in a Sorted Array (Binary Search) --V. IMP --Revise --Tricky
  540. Lowest Common Ancestor of Deepest Leaves (Tree)
  541. Strange Printer (DP) --V. HARD
  542. Find Critical and Pseudo Critical Edges in Minimum Spanning Tree (Graphs) --CONCEPT --Revise
  543. Avoid Flood in The City (Binary Search/TreeSet) --IMP --Tricky --Revise
  544. Making File Names Unique
  545. Number of Subsequences That Satisfy the Given Sum Condition (Two Pointers)
  546. N-Queens (Backtracking)
  547. N-Queens II (Backtracking)
  548. Snakes and Ladders (BFS) --TRICKY
  549. Minimum Window Substring (Sliding Window) --V.IMP --Revise --Popular
  550. Cheapest Flights Within K Stops (Graphs) --IMP --Revise
  551. Online Election (TreeMap)
  552. Cat and Mouse II (Game Theory DP)
  553. Insert Delete GetRandom O(1) - Duplicates allowed (Design) --Revise --IMP
  554. Largest Values From Labels (Greedy)
  555. Reorder Routes to Make All Paths Lead to the City Zero (Graphs)
  556. Minimize Malware Spread II (Graphs+DSU) --Revise
  557. Checking Existence of Edge Length Limited Paths ( Graphs MST + Sorting)
  558. Loud and Rich (Graphs/DFS)
  559. Minimum Cost Tree From Leaf Values (DP) --IMP --Revise
  560. Regular Expression Matching (DP) --IMP --REVISE
  561. Sum of Beauty in the Array (PrefixMin + Suffix Max)
  562. Partition Array into Disjoint Intervals (PrefMin + Suffix Max)
  563. Design Front Middle Back Queue (Deque Design)
  564. Time Based Key-Value Store (Binary Search)
  565. Find Median from Data Stream (Priority Queue) --V.IMP* --Revise
  566. Sliding Window Median (2 TreeSets) --V.IMP --Revise
  567. Longest String Chain (LIS DP)
  568. Longest Happy String (Greedy/ PriorityQueue) --V.IMP --Revise
  569. Boundary of Binary Tree (Tree) (Solved on LintCode) --IMP --Revise
  570. Construct Binary Tree from Inorder and Postorder Traversal (Tree / DnC) --REVISE --V.IMP
  571. Construct Binary Tree from Preorder and Inorder Traversal (Tree / DnC) --REVISE --V.IMP
  572. Count and Say (DP / Simulation)
  573. Construct Binary Search Tree from Preorder Traversal (Tree / DnC) --REVISE --V.IMP
  574. Restore IP Addresses (Backtracking)
  575. Largest BST Subtree (Tree) (Solved on binarysearch.com) --IMP --Revise
  576. Binary Tree Cameras (Tree DP) --HARD --REVISE
  577. Lexicographically Smallest Equivalent String (DSU) (Solved on binarysearch.com as String Equivalence Relations)
  578. Prefix and Suffix Search (Trie) --CONCEPT --IMP
  579. Search a 2D Matrix II (Matrix) --V.IMP --Revise
  580. Kth Largest Element in an Array (QuickSelect) --IMP --Revise
  581. Search Suggestions System (Trie) --Revise
  582. Maximum Number of Events That Can Be Attended (Sweep Line) --Tricky --V.IMP
  583. Maximum Number of Events That Can Be Attended II (Binary Search + DP)
  584. Course Schedule III (Greedy) --Concept --HARD
  585. Course Schedule IV (Graphs)
  586. Fruit Into Baskets (Sliding Window)
  587. Delete Nodes And Return Forest (Tree)
  588. Reverse Pairs (Merge Sort)
  589. Number of Longest Increasing Subsequence (DP) --V. IMP Revise
  590. Random Pick with Weight (Randomized Algo -- Binary Search) --IMP --Revise
  591. Serialize and Deserialize Binary Tree (BFS)
  592. Parallel Courses II (Bitmask DP) --HARD
  593. Longest Subarray of 1's After Deleting One Element (Prefix/SUffix Processing)
  594. Largest Number (Sorting with Custom Comparator)
  595. Maximum Score Of Spliced Array (Prefix Sum) --IMP --REVISE
  596. Pacific Atlantic Water Flow (Graphs)
  597. Stock Price Fluctuation (TreeMap)
  598. Minimum Difference Between Largest and Smallest Value in Three Moves (Greedy) --IMP --**REVISE
  599. Asteroid Collision (Stack) --Tricky Edge cases
  600. Count Square Submatrices with All Ones (DP)
  601. Odd Even Jump (DP + TreeMap) --IMP --Revise
  602. Queue Reconstruction by Height (Sorting) --Tricky
  603. Number of Submatrices That Sum to Target (Prefix Sum + HashMap)
  604. Minimum Moves to Equal Array Elements II (Median)
  605. Last Moment Before All Ants Fall Out of a Plank --CONCEPT
  606. Count Submatrices With All Ones (DP) --HARD --TRICKY
  607. Bulls and Cows
  608. Single Number III (Bit Manipulation)
  609. Maximum Gap (Bucket Approach) --CONCEPT --HARD
  610. Longest Arithmetic Subsequence (LIS Type DP)
  611. Vertical Order Traversal of a Binary Tree (DFS + HashMap)
  612. Sum of Square Numbers (Math)
  613. Maximum Product of Splitted Binary Tree (Tree DP)
  614. Spiral Matrix IV
  615. Number of People Aware of a Secret (DP) --HARD
  616. Number of Increasing Paths in a Grid (DP)
  617. Queries on a Permutation With Key (Fenwick Tree) --CONCEPT --IMP
  618. Domino and Tromino Tiling (DP) --IMP
  619. Shifting Letters
  620. Minimum Time to Make Rope Colorful (Greedy)
  621. Interleaving String (DP)
  622. Minimum Possible Integer After at Most K Adjacent Swaps On Digits (Fenwick Tree + Greedy) --IMP --REVISE
  623. Online Majority Element In Subarray (Segment Tree) --CONCEPT --REVISE
  624. Design Circular Deque (Design) --IMP --Popular --Revise
  625. Paint house III (DP)
  626. Minimum Numbers of Function Calls to Make Target Array (Math/ Bit Manipulation)
  627. Smallest Number in Infinite Set
  628. Move Pieces to Obtain a String (Prefix Sum)
  629. Jump Game VI (DP + Monotonic Queue) --CONCEPT --Tricky
  630. Find Smallest Common Element in All Rows (TreeMap+HashSet) (Solved on binarysearch.com)
  631. Maximum of Minimum Values in All Subarrays (MonoStack + Suffix Max) (Solved on GFG) --HARD --CONCEPT
  632. 01 Matrix (Multi-Source BFS)
  633. Push Dominoes (Two Pointer) --IMP
  634. Non-negative Integers without Consecutive Ones (Digit DP)
  635. Count Unique Characters of All Substrings of a Given String --IMP
  636. Kth Smallest Element in a Sorted Matrix (Binary Search and other approaches) --POPULAR --IMP --REVISE
  637. Number of Nodes in the Sub-Tree With the Same Label
  638. Minimum Number of Swaps to Make the Binary String Alternating --IMP
  639. Check Completeness of a Binary Tree (BFS) --IMP
  640. Even Odd Tree (BFS)
  641. Number of Good Leaf Nodes Pairs (Tree)
  642. Minimum Suffix Flips
  643. String Compression II (DP) --HARD --Runtime Strict**
  644. Selling Pieces of Wood (DP) --IMP
  645. Maximize the Confusion of an Exam (Sliding Window)
  646. Lexicographical Numbers (Backtracking)
  647. Find the Winner of an Array Game (Simulation)
  648. Max Sum of a Pair With Equal Sum of Digits
  649. Query Kth Smallest Trimmed Number
  650. Minimum Deletions to Make Array Divisible (GCD + Sorting)
  651. Count of Range Sum (Fenwick Tree + Binary Search)
  652. Minimum Swaps to Arrange a Binary Grid (Greedy) --IMP --REVISE
  653. Get the Maximum Score (DP) --IMP
  654. Find Kth Bit in Nth Binary String
  655. Maximum Number of Non-Overlapping Subarrays With Sum Equals Target (Prefix Sum) (DP) (Greedy) --IMP
  656. Recover Binary Search Tree (BST) --IMP --POPULAR
  657. Can Convert String in K Moves (Greedy) --IMP
  658. Count Substrings That Differ by One Character (Counting Problem) --IMP --CONCEPT
  659. Minimum Insertions to Balance a Parentheses String (Stack) --HARD --TRICKY
  660. Minimum Add to Make Parentheses Valid (Stack)
  661. Find Longest Awesome Substring (Prefix Bitmask) --CONCEPT --IMP
  662. Maximum Side Length of a Square with Sum Less than or Equal to Threshold (Sliding Window) (2D Prefix Sum + Binary Search)
  663. Design Circular Queue
  664. Sliding Puzzle (BFS) --IMPLEMENTATION HEAVY
  665. Magnetic Force Between Two Balls (Binary Search) --IMP
  666. Minimum Number of Days to Eat N Oranges (DP) --Tricky --Math
  667. Reverse Linked List II
  668. Find Latest Group of Size M (DSU) --Tricky --Unable to Implement without WA
  669. Detect Cycles in 2D Grid (DSU)
  670. Minimum Number of Days to Disconnect Island (DSU) --Observation Based
  671. Number of Ways to Reorder Array to Get Same BST (Divide And Conquer) --CONCEPT --IMP --Revise
  672. Number of Ways Where Square of Number Is Equal to Product of Two Numbers (Counting)
  673. Find and Replace Pattern (HashMap)
  674. Shortest Subarray to be Removed to Make Array Sorted (Two Pointer) --TRICKY --HARD
  675. Count All Possible Routes (DP)
  676. Count Unhappy Friends (Brute Force) --Bad problem
  677. Check If String Is Transformable With Substring Sort Operations (Greedy) --IMP
  678. Maximum Product Subarray (DP) --IMP --REVISE
  679. Maximum Non Negative Product in a Matrix (DP) --IMP --REVISE
  680. Split a String Into the Max Number of Unique Substrings (Backtracking)
  681. Last Stone Weight II (DP) --Revise --V.IMP
  682. My Calendar I (TreeMap/ Binary Search) --IMP --Revise
  683. Strange Printer II (Topological Sort/ Check for DAG) --Tough To Come up With --Revise
  684. Make Sum Divisible by P
  685. Maximum Profit of Operating a Centennial Wheel
  686. Throne Inheritance (Design)
  687. Maximum Number of Achievable Transfer Requests (Bitmask) --IMP
  688. Number of Different Subsequences GCDs (Math) --TRICKY --REVISE --CONCEPT
  689. Maximum Number of Visible Points (Sliding Window + Geometry) --IMP --TRICKY --CONCEPT
  690. Minimum One Bit Operations to Make Integers Zero (Bit Manipulation + DP) --HARD --TRICKY
  691. Find Valid Matrix Given Row and Column Sums --Tricky
  692. Alert Using Same Key-Card Three or More Times in a One Hour Period
  693. Find Servers That Handled Most Number of Requests (TreeSet/BinarySearch + SweepLine) --REVISE --CONCEPT
  694. Number of Times Binary String Is Prefix_Aligned --REVISE --TRICKY --IMP
  695. Node With Highest Edge Score (Graphs)
  696. Construct Smallest Number From DI String (Two Pointer + Greedy) --IMP
  697. Count Special Integers ( Digit DP + Bitmask) --REVISE
  698. Split Two Strings to Make Palindrome (Greedy) --IMP --REVISE --CONCEPT
  699. Count Subtrees With Max Distance Between Cities (Graph + Bitmask) --IMP
  700. Best Team With No Conflicts (DP) --IMP --Revise
  701. Lexicographically Smallest String After Applying Operations (Brute Force)
  702. Watering Plants II
  703. Split Array into Consecutive Subsequences (Greedy + PriorityQueue) --IMP --Revise --Tricky
  704. Find Peak Element (Binary Search)
  705. Fancy Sequence (Linear Functions) --V. V. HARD --CONCEPT
  706. Coordinate With Maximum Network Quality (Brute Force)
  707. Number of Sets of K Non-Overlapping Line Segments (DP) --Revise
  708. Minimum Number of Refueling Stops (Greedy/PQ) --Revise --V. IMP
  709. Stamping The Sequence ( Greedy) --TOUGH --HEAVY GREEDY
  710. Unique Paths III (Bitmask)
  711. Accounts Merge
  712. Maximum Sum BST in Binary Tree --V.IMP --REVISE
  713. Count Nice Pairs in an Array
  714. Unique Binary Search Trees (DnC DP)
  715. Sort the Matrix Diagonally (Count Sort)
  716. Kth Smallest Instructions (Greedy) --IMP --Revise
  717. Number of Ways to Form a Target String Given a Dictionary (DP) --IMP --Revise
  718. Shuffle an Array (Randomized Algo - Fisher Yates Shuffle Algorithm) --V.V.IMP
  719. Strictly Palindromic Number
  720. Maximum Rows Covered by Columns (Bitmask)
  721. Maximum Number of Robots Within Budget (MonoQueue + Binary Search) --**V.IMP --Revise
  722. Longest Nice Subarray (Sliding Window) --Revise
  723. Number of Ways to Reach a Position After Exactly k Steps (DP)
  724. Subarray With Elements Greater Than Varying Threshold (MonoStack) --Tricky --V IMP
  725. The Number of Weak Characters in the Game (Sorting + Two Pointer + SuffixMax)
  726. Longest Chunked Palindrome Decomposition (String Hashing) --TOUGH --Implementation Heavy
  727. Longest Duplicate Substring (String Hashing + Binary Search) --V.IMP
  728. Repeated DNA Sequences
  729. Distinct Echo Substrings (String Hashing)
  730. Maximum Length of Repeated Subarray (String Hashing + Binary Search)
  731. Optimal Partition of String (Greedy)
  732. Divide Intervals Into Minimum Number of Groups (SweepLine / PQ)
  733. Longest Increasing Subsequence II (DP + Segment Tree) --IMP --CONCEPT
  734. Bag of Tokens (Greedy + Two Pointer)
  735. Pseudo-Palindromic Paths in a Binary Tree
  736. Product of the Last K Numbers (Prefix Products) --CONCEPT --REVISE
  737. Number of Ways to Wear Different Hats to Each Other (Bitmask DP) --Tricky --CONCEPT
  738. Find Original Array From Doubled Array (Sorting + Two Pointer) --IMP
  739. Palindrome Pairs --Implementation Heavy --Tight Constraint
  740. Length of the Longest Alphabetical Continuous Substring
  741. Reverse Odd Levels of Binary Tree (Tree)
  742. Sum of Prefix Scores of Strings (Trie)
  743. Find Duplicate File in System
  744. Longest Subarray With Maximum Bitwise AND
  745. Find All Good Indices (Prefix/Suffix)
  746. Number of Good Paths (DSU+Sorting) --CONCEPT --IMP
  747. Longest Arithmetic Subsequence of Given Difference (DP)
  748. Maximum Sum of an Hourglass
  749. Minimize XOR (Bit Manipulation + Greedy)
  750. Maximum Deletions on a String (String Hashing + DP) --IMP
  751. Longest Uploaded Prefix
  752. Bitwise XOR of All Pairings (Bit Manipulation)
  753. Number of Pairs Satisfying Inequality (Fenwick Tree) --IMP --Revise
  754. Erect The Fence ( Geometry - Convex Hull) --IMP --Revise
  755. Binary Search Tree to Greater Sum Tree (Tree)
  756. Reaching Points (Greedy + Math) --IMP CONCEPT --HARD --Tricky
  757. Find the Index of the First Occurrence in a String
  758. Delete the Middle Node of a Linked List
  759. Count Number of Distinct Integers After Reverse Operations
  760. Sum of Number and Its Reverse
  761. Count Subarrays With Fixed Bounds (Sliding Window) --CONCEPT --HARD
  762. Minimum Difficulty of a Job Schedule (DP)
  763. Top K Frequent Words (Min Heap)
  764. Contains Duplicate III (Binary Seach/ TreeMap) --IMP
  765. Image Overlap --IMP --CONCEPT
  766. Single-Threaded CPU (Greedy) --V.IMP
  767. Find XOR Sum of All Pairs Bitwise AND (Bit manipulation) --CONCEPT --IMP
  768. Max Points on a Line (Geometry)
  769. Words Within Two Edits of Dictionary
  770. Destroy Sequential Targets
  771. Next Greater Element IV (Monotstack + Binary Search + Segment Tree) --CONCEPT* --IMP
  772. Most Popular Video Creator
  773. Minimum Addition to Make Integer Beautiful (Greedy) --IMP --REVISE
  774. Height of Binary Tree After Subtree Removal Queries (Euler Tour + Tree DP + Prefix Suffix) --V.V.IMP
  775. Where Will the Ball Fall
  776. Implement Magic Dictionary (Trie)
  777. Minimum Genetic Mutation (BFS)
  778. Orderly Queue (Greedy)
  779. Maximum Sum of Distinct Subarrays With Length K (Fixed Sling Window)
  780. Total Cost to Hire K Workers (Greedy) --IMP
  781. Minimum Total Distance Traveled (DP)
  782. Online Stock Span (MonoStack) --IMP --REVISE
  783. Valid Sudoku --IMP
  784. Odd Even Linked List
  785. Reconstruct Itinerary (Euler Path of Graph) --V.IMP --REVISE
  786. Minimum Rounds to Complete All Tasks (Math) ---Revise
  787. Powerful Integers (Brute Force + Math)
  788. Maximal Score After Applying K Operations
  789. Make Number of Distinct Characters Equal
  790. As Far from Land as Possible (Multi Source BFS) --IMP --REVISE
  791. Maximize Score After N Operations (Bitmask DP)
  792. Longest Path With Different Adjacent Characters (Tree DP) --IMP
  793. Longest Well-Performing Interval (Prefix Sum) --V.IMP --*Tricky
  794. Count the Number of Good Subarrays (Sliding Window) --V.IMP --Concept
  795. Number of Valid Words for Each Puzzle (Bitmask/Submask Enumeration) --V.IMP --CONCEPT
  796. Flip String to Monotone Increasing (DP)
  797. Get Equal Substrings Within Budget (Binary Search + Fixed SLiding Window)
  798. Apply Bitwise Operations to Make Strings Equal (Bit Operations Observation)
  799. Minimum Cost to Split an Array (DP + Preprocessing) --IMP --REVISE
  800. Find Closest Node to Given Two Nodes ( Graphs)
  801. Data Stream as Disjoint Intervals (Binary Search) --IMP --REVISE
  802. Freedom Trail (DP) --CONCEPT
  803. Count the Number of Fair Pairs (Sorting + Binary Search) --V.IMP -Revise*
  804. Substring XOR Queries (Bit Manipulation + Tricky Observation) --Revise --CONCEPT
  805. Subsequence With the Minimum Score (Prefix and Suffix) --IMP. CONCEPT
  806. Maximum Number of Consecutive Values You Can Make (Greedy/ Observation) --IMP --Tricky CONCEPT
  807. Subarrays with K Different Integers (Sliding Window) --IMP
  808. Pancake Sorting (Observation and Logic) --Observation
  809. Number of Ways to Divide a Long Corridor (Counting/ Math) --IMP
  810. Divide Array in Sets of K Consecutive Numbers (Greedy) --IMP
  811. Check Knight Tour Configuration
  812. The Number of Beautiful Subsets (Backtracking)
  813. Smallest Missing Non-negative Integer After Operations (Math) --V. IMP
  814. Design Underground System (Design)
  815. Maximum Value of K Coins From Piles (DP) --Concept
  816. Shortest Bridge (DFS + BFS) --IMP
  817. Put Marbles in Bags (Heaps/Greedy) --Tricky --Revise
  818. All Nodes Distance K in Binary Tree (Graphs) --IMP
  819. Find All Duplicates in an Array (Cycle Sort) --IMP --Concept --Revise
  820. Minimum Speed to Arrive on Time (Binary Search)
  821. Minimum Number of Removals to Make Mountain Array (DP) --IMP --Concept
  822. Dinner Plate Stacks (Stacks + TreeSet) --IMP --Revise
  823. Maximum Performance of a Team (Greedy) --V.IMP --Revise

competitive-practice's People

Contributors

rohantrix avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

competitive-practice's Issues

BFS in Java Improvement needed!

Submission of BFS in Java was completed in the nick of time. Image attached :

image

While a submission in Python had this result:

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.