Below is a table listing the LeetCode problems, their topics, and links to their solutions.
Question Name | Topics | File |
---|---|---|
Keyboard Row | Array , Hash Table | FindWords.cs |
Next Greater Element | Array , Hash Table | NextGreaterElement.cs |
Construct Rectangle | Math | ConstructRectangle.cs |
Max Consecutive Ones | Array | FindMaxConsecutiveOnes.cs |
License Key Formatting | String | LicenseKeyFormatting.cs |
Number Complement | Bit Manipulation | FindComplement.cs |
Hamming Distance | Bit Manipulation | HammingDistance.cs |
Repeated Substring Pattern | String | RepeatedSubstringPattern.cs |
Find All Numbers Disappeared in an Array | Array | FindDisappearedNumbers.cs |
Number of Segments in a String | String | CountSegments.cs |
Third Maximum Number | Array , Sorting | ThirdMax.cs |
Intersection of Two Arrays II | Array , Hash Table | Intersection.cs |
Intersection of Two Arrays | Array , Hash Table | Intersection.cs |
Counting Bits | Dynamic Programming , Bit Manipulation | CountBits.cs |
Convert a Number to Hexadecimal | Math | ToHex.cs |
First Unique Character in a String | String | FirstUniqueCharacter.cs |
First Unique Character in a String | String | FirstUniqueCharacter.cs |
Fizz Buzz | Math ,String | FizzBuzz.cs |
Longest Palindrome | Hash Table ,String | LongestPalindrome.cs |
Move Zeroes | Array ,Two Pointers | MoveZeroes.cs |
Find the Difference | String | FindTheDifference.cs |
Nim Game | Math | NimGame.cs |
DayOfYear | Math ,String | DayOfYear.cs |
Pow(x, n) | Math | Pow(x, n).cs |
Valid Perfect Square | Math ,Binary Search | IsPerfectSquare.cs |
Word Pattern | Hash Table , String | WordPattern.cs |
Summary Ranges | Array | SummaryRanges.cs |
Ransom Note | String | RansomNote.cs |
Is Subsequence | Two Pointers , String , Dynamic Programming | IsSubsequence.cs |
Reverse Vowels of a String | String | ReverseVowels.cs |
Reverse String II | String | ReverseStr.cs |
IsAlienSorted | Array , String | IsAlienSorted.cs |
3Sum | Array , Two Pointers , Sorting | 3Sum.cs |
Int To Roman | Math , String | IntToRoman.cs |
Isomorphic Strings | Hash Table , String | IsomorphicStrings.cs |
Day of the Week | Math | DayOfWeek.cs |
Number of Days Between Two Dates | Math , String | DaysBetweenDates.cs |
Valid Anagram | Hash Table , String , Sorting | ValidAnagram.cs |
Contains Duplicate II | Array ,Hash Table | ContainsDuplicateII.cs |
Check if Number Has Equal Digit Count and Digit Value | Hash Table ,String,Counting | DigitCount.cs |
Best Time to Buy and Sell Stock | Dynamic Programming ,Array | BestTimeToBuyAndSellStock.cs |
Binary Tree Inorder Traversal | Stack,Tree,Binary Tree | BinaryTreeInorderTraversal.cs |
Pascal's Triangle II | Dynamic Programming | Pascal'sTriangleII.cs |
Pascal's Triangle | Dynamic Programming | Pascal'sTriangle.cs |
Merge Sorted Array | Array | MergeSortedArray.cs |
Zigzag Conversion | String | ZigzagConversion .cs |
Harshad Number | Math | HarshadNumber.cs |
Counting Words With a Given Prefix | String | CountingWordsWithaGivenPrefix.cs |
Add Digits | Math | AddDigits.cs |
Add Strings | String | AddStrings.cs |
AddBinary | Math | AddBinary.cs |
Arranging Coins | Math | ArrangingCoins.cs |
Climb Stairs | Dynamic Programming | ClimbStairs.cs |
Contains Duplicate | Array | ContainsDuplicate.cs |
ConvertToTitle | Math | ConvertToTitle.cs |
Delete Duplicates | Array | DeleteDuplicates.cs |
Excel Sheet Column Number | Math | ExcelSheetColumnNumber.cs |
Final Array State After K Multiplication Operations I | Array | FinalArrayStateAfterKMultiplicationOperationsI.cs |
Happy Number | Math | HappyNumber.cs |
Is Palindrome | String | IsPalindrome.cs |
Is Valid Word | String | IsValidWord.cs |
Length Of Last Word | String | LengthOfLastWord.cs |
Longest Common Prefix | String | LongestCommonPrefix.cs |
Merge Two Sorted Lists | Linked List | MergeTwoSortedLists.cs |
Missing Number | Array | MissingNumber.cs |
My Sqrt | Math | MySqrt.cs |
Palindrome Number | Math | PalindromeNumber.cs |
Plus One | Array | PlusOne.cs |
Power of Four | Math | PowerOfFour.cs |
Power of Three | Math | PowerOfThree.cs |
Power of Two | Math | PowerOfTwo.cs |
Remove Duplicates | Array | RemoveDuplicates.cs |
Remove Element | Array | RemoveElement.cs |
Reverse String | String | ReverseString.cs |
Roman to Integer | Math | RomanToInteger.cs |
Same Tree | Tree | SameTree.cs |
Search Insert Position | Array | SearchInsertPosition.cs |
Single Number | Array | SingleNumber.cs |
Smallest Number After K Swaps | Array | SmallestNumberAfterKSwaps.cs |
Two Sum | Array | TwoSum.cs |
Valid Parentheses | String | ValidParentheses.cs |
Find the Index of the First Occurrence in a String | String | FindIndexOfFirstOccurrence.cs |
Majority Element | Array | MajorityElement.cs |
Ugly Number | Math | UglyNumber.cs |
Longest Substring Without Repeating Characters | String | Program.cs |