Logo
    Logo

    ©️ 2020-2026, Akhil Abraham.

    LinkedInGitHubMediumX
    Akhil Abraham
    Akhil Abraham
    /Posts
    Posts
    /LeetCode
    LeetCode
    LeetCode
    LeetCode

    LeetCode

    LeetCode

    0001 - Two Sum0001 - Two Sum
    0001 - Two Sum
    Easy
    Python
    0009 - Palindrome Number0009 - Palindrome Number
    0009 - Palindrome Number
    Easy
    Python
    0013 - Roman to Integer0013 - Roman to Integer
    0013 - Roman to Integer
    Easy
    Python
    0014 - Longest Common Prefix0014 - Longest Common Prefix
    0014 - Longest Common Prefix
    Easy
    Python
    0020 - Valid Parentheses0020 - Valid Parentheses
    0020 - Valid Parentheses
    Easy
    Python
    0021 - Merge Two Sorted Lists0021 - Merge Two Sorted Lists
    0021 - Merge Two Sorted Lists
    Easy
    Python
    0026 - Remove Duplicates from Sorted Array0026 - Remove Duplicates from Sorted Array
    0026 - Remove Duplicates from Sorted Array
    Easy
    Python
    0027 - Remove Element0027 - Remove Element
    0027 - Remove Element
    Easy
    Python
    0028 - Find the Index of the First Occurrence in a String0028 - Find the Index of the First Occurrence in a String
    0028 - Find the Index of the First Occurrence in a String
    Easy
    Python
    0035 - Search Insert Position0035 - Search Insert Position
    0035 - Search Insert Position
    Easy
    Python
    0058 - Length of Last Word0058 - Length of Last Word
    0058 - Length of Last Word
    Easy
    Python
    0066 - Plus One0066 - Plus One
    0066 - Plus One
    Easy
    Python
    0067 - Add Binary0067 - Add Binary
    0067 - Add Binary
    Easy
    Python
    0069 - Sqrt(x)0069 - Sqrt(x)
    0069 - Sqrt(x)
    Easy
    Python
    0070 - Climbing Stairs0070 - Climbing Stairs
    0070 - Climbing Stairs
    Easy
    Python
    0083 - Remove Duplicates from Sorted List0083 - Remove Duplicates from Sorted List
    0083 - Remove Duplicates from Sorted List
    Easy
    Python
    0088 - Merge Sorted Array0088 - Merge Sorted Array
    0088 - Merge Sorted Array
    Easy
    Python
    0094 - Binary Tree Inorder Traversal0094 - Binary Tree Inorder Traversal
    0094 - Binary Tree Inorder Traversal
    Easy
    Python
    0100 - Same Tree0100 - Same Tree
    0100 - Same Tree
    Easy
    Python
    0101 - Symmetric Tree0101 - Symmetric Tree
    0101 - Symmetric Tree
    Easy
    Python
    0104 - Maximum Depth of Binary Tree0104 - Maximum Depth of Binary Tree
    0104 - Maximum Depth of Binary Tree
    Easy
    Python
    0108 - Convert Sorted Array to Binary Search Tree0108 - Convert Sorted Array to Binary Search Tree
    0108 - Convert Sorted Array to Binary Search Tree
    Easy
    Python
    0110 - Balanced Binary Tree0110 - Balanced Binary Tree
    0110 - Balanced Binary Tree
    Easy
    Python
    0111 - Minimum Depth of Binary Tree0111 - Minimum Depth of Binary Tree
    0111 - Minimum Depth of Binary Tree
    Easy
    Python
    0112 - Path Sum0112 - Path Sum
    0112 - Path Sum
    Easy
    Python
    0118 - Pascal's Triangle0118 - Pascal's Triangle
    0118 - Pascal's Triangle
    Easy
    Python
    0119 - Pascal's Triangle II0119 - Pascal's Triangle II
    0119 - Pascal's Triangle II
    Easy
    Python
    0121 - Best Time to Buy and Sell Stock0121 - Best Time to Buy and Sell Stock
    0121 - Best Time to Buy and Sell Stock
    Easy
    Python
    0125 - Valid Palindrome0125 - Valid Palindrome
    0125 - Valid Palindrome
    Easy
    Python
    0136 - Single Number0136 - Single Number
    0136 - Single Number
    Easy
    Python
    0141 - Linked List Cycle0141 - Linked List Cycle
    0141 - Linked List Cycle
    Easy
    Python
    0144 - Binary Tree Preorder Traversal0144 - Binary Tree Preorder Traversal
    0144 - Binary Tree Preorder Traversal
    Easy
    Python
    0145 - Binary Tree Postorder Traversal0145 - Binary Tree Postorder Traversal
    0145 - Binary Tree Postorder Traversal
    Easy
    Python
    0160 - Intersection of Two Linked Lists0160 - Intersection of Two Linked Lists
    0160 - Intersection of Two Linked Lists
    Easy
    Python
    0168 - Excel Sheet Column Title0168 - Excel Sheet Column Title
    0168 - Excel Sheet Column Title
    Easy
    Python
    0169 - Majority Element0169 - Majority Element
    0169 - Majority Element
    Easy
    Python
    0171 - Excel Sheet Column Number0171 - Excel Sheet Column Number
    0171 - Excel Sheet Column Number
    Easy
    Python
    0190 - Reverse Bits0190 - Reverse Bits
    0190 - Reverse Bits
    Easy
    Python
    0191 - Number of 1 Bits0191 - Number of 1 Bits
    0191 - Number of 1 Bits
    Easy
    Python
    0202 - Happy Number0202 - Happy Number
    0202 - Happy Number
    Easy
    Python
    0203 - Remove Linked List Elements0203 - Remove Linked List Elements
    0203 - Remove Linked List Elements
    Easy
    Python
    0205 - Isomorphic Strings0205 - Isomorphic Strings
    0205 - Isomorphic Strings
    Easy
    Python
    0206 - Reverse Linked List0206 - Reverse Linked List
    0206 - Reverse Linked List
    Easy
    Python
    0217 - Contains Duplicate0217 - Contains Duplicate
    0217 - Contains Duplicate
    Easy
    Python
    0219 - Contains Duplicate II0219 - Contains Duplicate II
    0219 - Contains Duplicate II
    Easy
    Python
    0226 - Invert Binary Tree0226 - Invert Binary Tree
    0226 - Invert Binary Tree
    Easy
    Python
    0228 - Summary Ranges0228 - Summary Ranges
    0228 - Summary Ranges
    Easy
    Python
    0231 - Power of Two0231 - Power of Two
    0231 - Power of Two
    Easy
    Python
    0232 - Implement Queue using Stacks0232 - Implement Queue using Stacks
    0232 - Implement Queue using Stacks
    Easy
    Python
    0234 - Palindrome Linked List0234 - Palindrome Linked List
    0234 - Palindrome Linked List
    Easy
    Python
    0242 - Valid Anagram0242 - Valid Anagram
    0242 - Valid Anagram
    Easy
    Python
    0258 - Add Digits0258 - Add Digits
    0258 - Add Digits
    Easy
    Python
    0263 - Ugly Number0263 - Ugly Number
    0263 - Ugly Number
    Easy
    Python
    0268 - Missing Number0268 - Missing Number
    0268 - Missing Number
    Easy
    Python
    0278 - First Bad Version0278 - First Bad Version
    0278 - First Bad Version
    Easy
    Python
    0283 - Move Zeroes0283 - Move Zeroes
    0283 - Move Zeroes
    Easy
    Python
    0290 - Word Pattern0290 - Word Pattern
    0290 - Word Pattern
    Easy
    Python
    0303 - Range Sum Query - Immutable0303 - Range Sum Query - Immutable
    0303 - Range Sum Query - Immutable
    Easy
    Python
    0338 - Counting Bits0338 - Counting Bits
    0338 - Counting Bits
    Easy
    Python
    0344 - Reverse String0344 - Reverse String
    0344 - Reverse String
    Easy
    Python
    0345 - Reverse Vowels of a String0345 - Reverse Vowels of a String
    0345 - Reverse Vowels of a String
    Easy
    Python
    0349 - Intersection of Two Arrays0349 - Intersection of Two Arrays
    0349 - Intersection of Two Arrays
    Easy
    Python
    0350 - Intersection of Two Arrays II0350 - Intersection of Two Arrays II
    0350 - Intersection of Two Arrays II
    Easy
    Python
    0383 - Ransom Note0383 - Ransom Note
    0383 - Ransom Note
    Easy
    Python
    0387 - First Unique Character in a String0387 - First Unique Character in a String
    0387 - First Unique Character in a String
    Easy
    Python
    0389 - Find the Difference0389 - Find the Difference
    0389 - Find the Difference
    Easy
    Python
    0392 - Is Subsequence0392 - Is Subsequence
    0392 - Is Subsequence
    Easy
    Python
    0404 - Sum of Left Leaves0404 - Sum of Left Leaves
    0404 - Sum of Left Leaves
    Easy
    Python
    0409 - Longest Palindrome0409 - Longest Palindrome
    0409 - Longest Palindrome
    Easy
    Python
    0412 - Fizz Buzz0412 - Fizz Buzz
    0412 - Fizz Buzz
    Easy
    Python
    0414 - Third Maximum Number0414 - Third Maximum Number
    0414 - Third Maximum Number
    Easy
    Python
    0415 - Add Strings0415 - Add Strings
    0415 - Add Strings
    Easy
    Python
    0448 - Find All Numbers Disappeared in an Array0448 - Find All Numbers Disappeared in an Array
    0448 - Find All Numbers Disappeared in an Array
    Easy
    Python
    0459 - Repeated Substring Pattern0459 - Repeated Substring Pattern
    0459 - Repeated Substring Pattern
    Easy
    Python
    0461 - Hamming Distance0461 - Hamming Distance
    0461 - Hamming Distance
    Easy
    Python
    0485 - Max Consecutive Ones0485 - Max Consecutive Ones
    0485 - Max Consecutive Ones
    Easy
    Python
    0496 - Next Greater Element I0496 - Next Greater Element I
    0496 - Next Greater Element I
    Easy
    Python
    0509 - Fibonacci Number0509 - Fibonacci Number
    0509 - Fibonacci Number
    Easy
    Python
    0520 - Detect Capital0520 - Detect Capital
    0520 - Detect Capital
    Easy
    Python
    0543 - Diameter of Binary Tree0543 - Diameter of Binary Tree
    0543 - Diameter of Binary Tree
    Easy
    Python
    0557 - Reverse Words in a String III0557 - Reverse Words in a String III
    0557 - Reverse Words in a String III
    Easy
    Python
    0572 - Subtree of Another Tree0572 - Subtree of Another Tree
    0572 - Subtree of Another Tree
    Easy
    Python
    0605 - Can Place Flowers0605 - Can Place Flowers
    0605 - Can Place Flowers
    Easy
    Python
    0617 - Merge Two Binary Trees0617 - Merge Two Binary Trees
    0617 - Merge Two Binary Trees
    Easy
    Python
    0637 - Average of Levels in Binary Tree0637 - Average of Levels in Binary Tree
    0637 - Average of Levels in Binary Tree
    Easy
    Python
    0643 - Maximum Average Subarray I0643 - Maximum Average Subarray I
    0643 - Maximum Average Subarray I
    Easy
    Python
    0657 - Robot Return to Origin0657 - Robot Return to Origin
    0657 - Robot Return to Origin
    Easy
    Python
    0704 - Binary Search0704 - Binary Search
    0704 - Binary Search
    Easy
    Python
    0709 - To Lower Case0709 - To Lower Case
    0709 - To Lower Case
    Easy
    Python
    0724 - Find Pivot Index0724 - Find Pivot Index
    0724 - Find Pivot Index
    Easy
    Python
    0746 - Min Cost Climbing Stairs0746 - Min Cost Climbing Stairs
    0746 - Min Cost Climbing Stairs
    Easy
    Python
    0876 - Middle of the Linked List0876 - Middle of the Linked List
    0876 - Middle of the Linked List
    Easy
    Python