Skip to content

Latest commit

 

History

History
143 lines (142 loc) · 66.3 KB

README.md

File metadata and controls

143 lines (142 loc) · 66.3 KB

🟡 Solved Medium Problems

question my answers tags
2-Add Two Numbers python
3-Longest Substring Without Repeating Characters python, php
6-Zigzag Conversion java (hash map), java (math)
15-3Sum go
19-Remove Nth Node From End of List python (two traverse)
22-Generate Parentheses go
24-Swap Nodes in Pairs go
28-Find the Index of the First Occurrence in a String javascript
33-Search in Rotated Sorted Array python
34-Find First and Last Position of Element in Sorted Array php
36-Valid Sudoku go (concurrency)
45-Jump Game II java
48-Rotate Image python
49-Group Anagrams python
55-Jump Game python (BFS), python (DP), java (pointer)
59-Spiral Matrix II go
63-Unique Paths II php
64-Minimum Path Sum python
71-Simplify Path javascript
73-Set Matrix Zeroes python
80-Remove Duplicates from Sorted Array II go, java
93-Restore IP Addresses python
98-Validate Binary Search Tree javascript
101-Symmetric Tree go
102-Binary Tree Level Order Traversal python
105-Construct Binary Tree from Preorder and Inorder Traversal go
106-Construct Binary Tree from Inorder and Postorder Traversal javascript
109-Convert Sorted List to Binary Search Tree javascript
122-Best Time to Buy and Sell Stock II python, go
128-Longest Consecutive Sequence go
129-Sum Root to Leaf Numbers php
133-Clone Graph python
134-Gas Station python
146-LRU Cache go (heap), go (linked-list) DS
150-Evaluate Reverse Polish Notation go
155-Min Stack php (array), go (stack) DS
167-Two Sum II - Input Array Is Sorted go
172-Factorial Trailing Zeroes python
184-Department Highest Salary sql
189-Rotate Array javascript, java
198-House Robber go
199-Binary Tree Right Side View python
200-Number of Islands python
208-Implement Trie (Prefix Tree) python DS
211-Design Add and Search Words Data Structure go (hashmap), go (trie)
215-Kth Largest Element in an Array go
237-Delete Node in a Linked List python, java
238-Product of Array Except Self go
271-Encode and Decode Strings python
274-H-Index go
347-Top K Frequent Elements go
399-Evaluate Division go
402-Remove K Digits go
427-Construct Quad Tree python DS
503-Next Greater Element II go
540-Single Element in a Sorted Array php
547-Number of Provinces go
554-Brick Wall php
623-Add One Row to Tree java
662-Maximum Width of Binary Tree java
714-Best Time to Buy and Sell Stock with Transaction Fee go
739-Daily Temperatures go
785-Is Graph Bipartite? go
791-Custom Sort String go
792-Number of Matching Subsequences python
853-Car Fleet go
935-Knight Dialer go
946-Validate Stack Sequences javascript
970-Powerful Integers php
983-Minimum Cost For Tickets python (dp), python (cache)
988-Smallest String Starting From Leaf java
994-Rotting Oranges php
1020-Number of Enclaves python
1027-Longest Arithmetic Subsequence go
1091-Shortest Path in Binary Matrix go
1146-Snapshot Array go DS
1161-Maximum Level Sum of a Binary Tree go
1254-Number of Closed Islands python
1318-Minimum Flips to Make a OR b Equal to c go
1319-Number of Operations to Make Network Connected python
1325-Delete Leaves With a Given Value java
1339-Maximum Product of Splitted Binary Tree python
1372-Longest ZigZag Path in a Binary Tree python
1376-Time Needed to Inform All Employees go
1396-Design Underground System go
1424-Diagonal Traverse II go
1443-Minimum Time to Collect All Apples in a Tree python
1456-Maximum Number of Vowels in a Substring of Given Length python
1466-Reorder Routes to Make All Paths Lead to the City Zero python
1557-Minimum Number of Vertices to Reach All Nodes go
1561-Maximum Number of Coins You Can Get go
1630-Arithmetic Subarrays go
1637. Widest Vertical Area Between Two Points Containing No Points go
1685-Sum of Absolute Differences in a Sorted Array go
1721-Swapping Nodes in a Linked List go
1802-Maximum Value at a Given Index in a Bounded Array go
1814-Count Nice Pairs in an Array go
1887-Reduction Operations to Make the Array Elements Equal go
2058-Find the Minimum and Maximum Number of Nodes Between Critical Points go
2090-K Radius Subarray Averages go interview
2101-Detonate the Maximum Bombs go (normal), go (concurrency)
2130-Maximum Twin Sum of a Linked List go (space complexity o(n))
2181-Merge Nodes in Between Zeros go
2300-Successful Pairs of Spells and Potions python
2316-Count Unreachable Pairs of Nodes in an Undirected Graph python
2352-Equal Row and Column Pairs go
2353-Design a Food Rating System go (heap) DS
2390-Removing Stars From a String javascript
2391-Minimum Amount of Time to Collect Garbage go
2405-Optimal Partition of String python
2439-Minimize Maximum of Array python
2482-Difference Between Ones and Zeros in Row and Column go
2487-Remove Nodes From Linked List java
2536-Increment Submatrices by One python
2545-Sort the Students by Their Kth Score python
2546-Apply Bitwise Operations to Make Strings Equal python
2567-Minimum Score by Changing Two Elements python
2568-Minimum Impossible OR python
2583-Kth Largest Sum in a Binary Tree python
2606-Find the Substring With Maximum Cost python
2615-Sum of Distances python
2623-Memoize javascript
2653-Sliding Subarray Beauty python DS
2698-Find the Punishment Number of an Integer python
2718-Sum of Matrix After Queries go
2734-Lexicographically Smallest String After Substring Operation python
2735-Collecting Chocolates python
2749-Minimum Operations to Make the Integer Zero go
2750-Ways to Split Array Into Good Subarrays go
2770-Maximum Number of Jumps to Reach the Last Index go
2816-Double a Number Represented as a Linked List java
2870-Minimum Number of Operations to Make Array Empty javascript
3137-Minimum Number of Operations to Make Word K-Periodic java
3138-Minimum Length of Anagram Concatenation java
3147-Taking Maximum Energy From the Mystic Dungeon java
3148-Maximum Difference Score in a Grid java
3152-Special Array II java
3153-Sum of Digit Differences of All Pairs java
3163-String Compression III java