- Leetcode 1143. Longest Common Subsequence. Python [Blind 75 Finally Done!]
- Leetcode 647. Palindromic Substrings. Python (O(n^2))
- Leetcode 572. Subtree of Another Tree. Python (Recursive)
- Leetcode 449. Serialize and Deserialize BST. Python (DFS)
- Leetcode 435. Non-overlapping Intervals. Python (nlog(n))
- Leetcode 424. Longest Repeating Character Replacement. Python (Sliding Window)
- Leetcode 417. Pacific Atlantic Water Flow. Python (Dfs Graph)
- Leetcode 371. Sum of Two Integers. C++ / Java
- Leetcode 347. Top K Frequent Elements. Python (Bubble Sort)
- Leetcode 338. Counting Bits. Python (Bubble Sort)
- Number of Connected Components in an Undirected Graph (Python)
- Leetcode 322. Coin Change. Python (Greedy? vs DP?)
- Leetcode 300. Longest Increasing Subsequence. Python (DP Approach)
- Leetcode 295. Find Median from Data Stream. Python
- Leetcode 271. Encode and Decode Strings. Python (Easy)
- Leetcode 61. Alien Dictionary. Python
- Leetcode 59. Graph Valid Tree. Python (DFS Recursive)
- Leetcode 268. Missing Number. Python [O(n) vs O(1)]
- Leetcode 58. Meeting Rooms II. Python (Easiest Explaination)
- Leetcode 242. Valid Anagram. Python (3 Ways)
- Leetcode 238. Product of Array Except Self. Python (Prefix/Postfix Approach)
- Leetcode 236. Lowest Common Ancestor of a Binary Tree. Python (Recursive)
- Leetcode 235. Lowest Common Ancestor of a Binary Search Tree. Python (Easy)
- Leetcode 230. Kth Smallest Element in a BST. Python (Stack)
- Leetcode 226. Invert Binary Tree. Python (Very Easy)
- Leetcode 212. Word Search II. Python (TrieNode/Prefix Tree)
- Leetcode 217. Contains Duplicate. Python (Easiest Approach ✅)
- Leetcode 213. House Robber II. Python (Easy)
- Leetcode 211. Design Add and Search Words Data Structure. Python (Prefix Tree)
- Leetcode 208. Implement Trie. Python (Prefix Tree)
- Leetcode 207. Course Schedule. Python
- Leetcode 206. Reverse Linked List. Python (The Best Approch)
- Leetcode 200. Number of Islands. Python
- Leetcode 198. House Robber. DP. Python
- Leetcode 191. Number of 1 Bits. Python
- Leetcode 190. Reverse Bits. Python. Bit Manipulation
- Leetcode 153. Find Minimum in Rotated Sorted Array. Python
- Leetcode 152. Maximum Product Subarray. Python
- Leetcode 143. Reorder List. Python
- Leetcode 141. Linked List Cycle. Python. Floyd's Tortoise and Hare Algorithm
- Leetcode 139. Word Break. Python
- Clone Graph - Leetcode 133 - Python
- Longest Consecutive Sequence - Leetcode 128 - Python
- Valid Palindrome - Python - Leetcode 125 - Easy
- Binary Tree Maximum Path Sum - Leetcode 124 - Python
- Best Time to Buy and Sell Stock - Leetcode 121 - Python
- Construct Binary Tree from Preorder and Inorder Traversal - Leetcode 105 - Python
- Maximum Depth of Binary Tree - Leetcode 104 - Python 3 Easy Ways [Recursion, BFS, DFS]
- Binary Tree Level Order Traversal - Leetcode 102 - BFS - Python
- Same Tree - Leetcode 100 - Python
- Validate Binary Search Tree - Leetcode 98 - Python
- Decode Ways - Leetcode 91 - Python
- Word Search - Leetcode 79 - Python
- Minimum Window Substring - Leetcode 76 - Python
- Set Matrix Zeroes - Leetcode 73 - Python
- Climbing Stairs - Leetcode 70 - Python - Dynamic Programming
- Unique Paths - Leetcode 62 - Python
- Insert Interval - Leetcode 57 - Python
- Merge Intervals - Leetcode 56 - Python
- Jump Game - Leetcode 55 - Python
- Spiral Matrix - Leetcode 54 - Python
- Maximum Subarray - Leetcode 53 - Python
- Group Anagrams - Leetcode 49 - Python
- Rotate Image - Leetcode 48 - Python
- Combination Sum - Leetcode 39 - Python
- Search in Rotated Sorted Array - Leetcode 33 - Python
- Merge k Sorted Lists - Leetcode 23 - Python
- Merge Two Sorted Lists - Leetcode 21 - Python
- Valid Parentheses - Leetcode 20 - Python Stack
- Remove Nth Node From End of List - Leetcode 19 - Python
- 3Sum - Leetcode 15 - Python
- Container with Most Water - Leetcode 11 - Python
- Longest Palindromic Substring - Python - Leetcode 5
- Longest Substring Without Repeating Characters - Leetcode 3 - Python
- Two Sum - Leetcode 1 - HashMap - Python
- Remove Linked List Elements
- Power of Four
- Find Target Indices After Sorting Array
- Squares of a Sorted Array
- Decode Ways II
- Longest Increasing Subsequence
- Fair Elections January Challenge 2021 Division 3 FAIRELCT
- Encoded String Codechef January Challenge 2021
- Codechef January Challenge 2021 Division 3 : Chef and Division 3
- MAY-31 2020 Challenge
- MAY-30 2020 Challenge
- MAY-29 2020 Challenge
- MAY-28 2020 Challenge
- MAY-27 2020 Challenge
- MAY-26 2020 Challenge
- MAY-25 2020 Challenge
- MAY-24 2020 Challenge
- MAY-23 2020 Challenge
- MAY-22 2020 Challenge
- MAY-21 2020 Challenge
- MAY-20 2020 Challenge
- MAY-19 2020 Challenge
- MAY-18 2020 Challenge
- MAY-17 2020 Challenge
- MAY-16 2020 Challenge
371 . Sum of Two Integers Given two integers a and b , return the sum of the two integers without using the operators + and - . Example 1: Input: a = 1, b = 2 Output: 3 Example 2: Input: a = 2, b = 3 Output: 5 Constraints: -1000 <= a, b <= 1000 Solution : C++ : class Solution { public: int getSum(int a, int b) { if (b==0) return a; int sum = a ^ b; int cr = (unsigned int) (a & b) << 1; return getSum(sum, cr); } }; Java : class Solution { public int getSum(int a, int b) { while(b != 0){ int tmp = (a & b) << 1; a = a ^ b; b = tmp; } return a; } } Explaination :