Skip to content
This repository has been archived by the owner on Aug 6, 2024. It is now read-only.
/ LeetCodeCPP Public archive

Compiled list of LeetCode solutions in C++17.

License

Notifications You must be signed in to change notification settings

shehab-as/LeetCodeCPP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCodeCPP

This repo serves as a collection of LeetCode solutions and compiled lists of "Getting Started" questions along with written articles explaining different topics in datastructures and algorithms 🚀

This repo is frequently updated with either the following:

  1. Solutions to new problems 📁
  2. Improvement on existing solutions 🛠️
  3. Links to newly written articles on DS & Alg. 📝

Current Stats 📊

Difficulty Count
Easy 219
Medium 241
Hard 34
Total 494

Getting Started in data structures

My Articles
Stacks
Queues
Linked Lists
Binary Search Trees
Hash Tables
Heaps & Priority Queues
[InProgress] Graphs
Tries

Advanced data structures

My Articles
Red-Black Trees
[InProgress] AVL Trees
[InProgress] B-Trees
[InProgress] Skip Lists
[InProgress] Minimum Spanning Trees
[InProgress] Union Find / Disjoin Sets
[InProgress] Binomial Heaps

Recommended Questions

Question Difficulty Description
3Sum Medium https://leetcode.com/problems/3sum/
Minimum Window Substring Hard https://leetcode.com/problems/minimum-window-substring/
Restore IP Addresses Medium https://leetcode.com/problems/restore-ip-addresses/
Find K Pairs with Smallest Sums Medium https://leetcode.com/problems/find-k-pairs-with-smallest-sums/
Remove Duplicates From Sorted List II Medium https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/
Word Pattern Easy https://leetcode.com/problems/word-pattern/
Set Mismatch Easy https://leetcode.com/problems/set-mismatch/
Exam Room Medium https://leetcode.com/problems/exam-room/
Permutation In String Medium https://leetcode.com/problems/permutation-in-string/
Network Delay Time Medium https://leetcode.com/problems/network-delay-time/
Maximum Profit in Job Scheduling Hard https://leetcode.com/problems/maximum-profit-in-job-scheduling/
Populating Next Right Pointers Each Node Medium https://leetcode.com/problems/populating-next-right-pointers-in-each-node/
Add Strings Easy https://leetcode.com/problems/add-strings/
Longest Palindrome Easy https://leetcode.com/problems/longest-palindrome/
Add Two Numbers II Medium https://leetcode.com/problems/add-two-numbers-ii/
Flatten A Multilevel Doubly Linked List Medium https://leetcode.com/problems/flatten-a-multilevel-doubly-linked-list/
All Nodes Distance K In Binary Tree Medium https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/
Single Element In Sorted Array Medium https://leetcode.com/problems/single-element-in-a-sorted-array/
Friend Circles Medium https://leetcode.com/problems/friend-circles/
Subsets Medium https://leetcode.com/problems/subsets/
Occurences After Bigram Easy https://leetcode.com/problems/occurrences-after-bigram/
Letter Case Permutation Medium https://leetcode.com/problems/letter-case-permutation/
Shortest Distance To A Character Easy https://leetcode.com/problems/shortest-distance-to-a-character/
Find All Duplicates In An Array Medium https://leetcode.com/problems/find-all-duplicates-in-an-array/
Range Sum Of BST Easy https://leetcode.com/problems/range-sum-of-bst/

Getting Started 👌 (questions are not sorted by difficulty)

Easy

  • Reverse Integer
  • Two Sum
  • Missing Number
  • Valid parentheses
  • Add Strings
  • Longest Palindrome
  • Occurences After Bigram
  • Set Mismatch
  • Shortest Distance to a Character
  • Word Pattern
  • Rotate Array
  • Merge Two Sorted Lists
  • Lowest Common Ancestor of a Binary Tree
  • Path Sum
  • Min Stack
(More To ADD)

Medium

  • 3Sum
  • Jump Game
  • Add Two Numbers II
  • All Nodes Distance K in Binary Tree
  • Exam Room
  • Find All Duplicates in an Array
  • Letter Case Permutation
  • Permutation in String
  • Remove Duplicates from Sorted List II
  • Flatten a Multilevel Doubly Linked List
  • Single Element in a Sorted Array
  • Subsets
  • Longest Valid Parentheses
  • Kth Largest Element in an Array
  • Merge k Sorted Lists
  • Sliding Window Maximum
  • Spiral Matrix
  • Validate Binary Search Tree
  • Frog Jump
  • Remove Nth Node From End of List
  • Course Schedule
(More To ADD)

Hard

  • LRU Cache
(More To ADD)