Skip to content

An attempt to solve Leetcode.com problems using C# along with various data structures and algorithms

Notifications You must be signed in to change notification settings

sanjay-bhat/ProgrammingConcepts

Repository files navigation

Awesome Leetcode Solutions List in C#

Build Status Awesome HitCount

A curated list of awesome solutions to problems from LeetCode.com Special thanks to GeekForGeeks.com for all the helpful videos and notes to solve these problems.

Word of caution

This is just my attempt to solve the various problems from LeetCode.com and it is far from perfect and would need optimizing to reduce the complexities, but it's a start. All code is in C# only. For now.

Leetcode Problems

# Title Test Cases Passed Difficulty Media
1 Two Sum ALL Easy
2 Add Two Numbers ALL Medium GFG Video
3 Longest Substring Without Repeating Characters ALL Medium GFG
4 Median of Two Sorted Arrays ALL Hard
5 Longest Palindromic Substring 49/92 Medium GFG Video
6 ZigZag Conversion ALL Medium
7 Reverse Integer ALL Easy
8 String to Integer(atoi) ALL Medium
9 Palindrome Number ALL Easy
10 Regular Expression Matching (362/445) Hard Video
11 Container With Most Water ALL Medium GFG
12 Integer to Roman ALL Medium
13 Roman to Integer ALL Easy
14 Longest Common Prefix NA Easy GFG
15 3Sum 226/313 Medium GFG
16 3Sum Closest NA Medium
17 Letter Combinations of a Phone Number ALL Medium GFG
18 4Sum NA Medium
19 Remove Nth Node From End of List 194/208 Medium
20 Valid Parentheses ALL Easy
21 Merge Two Sorted Lists ALL Easy
22 Generate Parentheses NA Medium
23 Merge k Sorted Lists ALL Hard GFG
24 Swap Nodes in Pairs ALL Medium
25 Reverse Nodes in k-Group ALL Hard
26 Remove Duplicates from Sorted Array ALL Easy
27 Remove Element ALL Easy
28 Implement strStr NA Easy
29 Divide Two Integers ALL Medium
30 Substring with Concatenation of All Words 23/169 Hard
31 Next Permutation NA Medium
32 Longest Valid Parentheses ALL Hard
33 Search in Rotated Sorted Array ALL Medium
34 Search for a Range ALL Medium
35 Search Insert Position NA Easy
36 Valid Sudoku ALL Medium
37 Sudoku Solver NA Hard
38 Count and Say NA Easy
39 Combination Sum NA Medium
40 Combination Sum II NA Medium
41 First Missing Positive NA Hard
42 Trapping Rain Water NA Hard
43 Multiply Strings ALL Medium
44 Wildcard Matching NA Hard
45 Jump Game II ALL Hard
46 Permutations NA Medium
47 Permutations II NA Medium
48 Rotate Image NA Medium
49 Group Anagrams NA Medium
50 Pow(x, n) ALL Medium
51 N-Queens 5/9 Hard
52 N-Queens II NA Hard
53 Maximum Subarray NA Easy
54 Spiral Matrix ALL Medium
55 Jump Game ALL Medium
56 Merge Intervals NA Medium
57 Insert Interval NA Hard
58 Length of Last Word NA Easy
59 Spiral Matrix II NA Medium
60 Permutation Sequence NA Medium
61 Rotate List NA Medium
62 Unique Paths ALL Medium
63 Unique Paths II NA Medium
64 Minimum Path Sum NA Medium
65 Valid Number NA Hard
66 Plus One NA Easy
67 Add Binary NA Easy
68 Text Justification NA Hard
69 Sqrt(x) NA Easy
70 Climbing Stairs ALL Easy
71 Simplify Path NA Medium
72 Edit Distance 548/1520 Hard Image GFG Video
74 Search a 2D Matrix ALL Medium
88 Merge Sorted Array ALL Easy
94 Binary Tree Inorder Traversal ALL Medium
127 Word Ladder 17/39 Medium
207 Course Schedule 35/42 Medium
226 Inverted Binary Tree ALL Easy
412 Fizz Buzz ALL Easy
564 Find the Closest Palindrome ALL Hard
617 Merge Two Binary Trees ALL Easy
1000 BestPathAcrossMatrix ALL Hard
1001 RecurringCharacter ALL Hard
1002 PositiveNegitiveSegregation ALL Hard
1003 Remove Duplicates Linkedlist ALL Hard
1004 Trie Data Structure ALL Hard
1005 Adding Binary Numbers ALL Hard


Data Structures

TimeComplexity



Algorithms

TimeComplexity



About

An attempt to solve Leetcode.com problems using C# along with various data structures and algorithms

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages