Skip to content

All the solutions of questions practised till date!.

Notifications You must be signed in to change notification settings

ruds18/DSA-Practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leetcode & GFG DSA Question’s Solutions.

Topic wise list of all the questions practiced

  • Coding Profiles - Leetcode , GFG
  • For More In depth bifercation (Inlcudes difficulty , platform used to solve the particular problem , particular dates on which problems were solved) - notion

Arrays

  • Count pairs with given sum 🔥
  • Valid Sudoku
  • Pascal’s Triangle
  • Last Stone Weight
  • Binary search
  • Find the Duplicate Number
  • Find the "Kth" max and min element of an array
  • Minimum number of jumps 🔥
  • Unique Number of Occurrences 🔥
  • Running Sum of 1d Array 🔥
  • Subarray Sum Equals K
  • Sort the People
  • Find All Good Indices

Matrix(2D-Array)

  • Reshape the Matrix
  • Print Like a Wave
  • Spiral Print
  • Image Rotation
  • Search a 2D Matrix
  • Binary search on matrix
  • row with maximum no. of 1
  • Sorted matrix

Strings

  • First Unique Character in a String
  • Ransom Note
  • Valid Anagram
  • Palindrome String
  • Add Strings
  • Unique Morse Code Words
  • Decode the Message
  • Count Asterisks
  • Longest Substring Without Repeating Characters
  •  Removing Stars From a String
  • 316. Remove Duplicate Letters 🔥
  • Optimal Partition of String 🔥
  • Length of the Longest Alphabetical Continuous Substring 🔥
  • Longest Common Prefix 🔥

Singly Linked List

  • Reverse Linked List
  • Middle of the Linked List
  • Remove Linked List Elements
  • Remove Middle Node of the Linked List
  • Linked List Cycle
  • Merge Two sorted Lists
  • Remove Duplicates from the sorted Lists
  • Palindrome Linked List
  • Reverse a Linked List in groups of given size.
  • Remove Loop in linked list 🔥
  • Linked List Cycle II 🔥
  • Remove Duplicates in a Un-sorted Linked List.
  • Remove Nth Node From End of List [IMP]
  • Sort linked list of 0s 1s 2s

Stacks

  • Two Stacks
  • Delete Middle element
  • Valid Parentheses 🔥
  • 232. Implement Queue using Stacks
  • Insert An Element At Its Bottom In A Given Stack
  • Reverse Stack Using Recursion 🔥

Tree

  • Count Leaf Nodes
  • Preorder Traversal
  • Postorder traversal
  • Inorder Traversal
  • height of the tree
  • Diameter of Tree
  • Level Order traversal
  • Symmetric tree
  • Count Complete Tree nodes
  • Path Sum 🔥
  • Check for balanced Tree 🔥
  • Two trees are identical or not
  • Sum tree
  • ZigZag Tree Traversal
  • Boundary Traversal
  • Sum of the Longest Bloodline of a Tree
  • 236. Lowest Common Ancestor of a Binary Tree
  • K Sum Paths
  • Kth Ancestor in a Tree 🔥
  • Invert a Tree

Binary Search Tree

  • Search in a BST
  • Validate BST
  • Insert into a Binary Search Tree
  • Delete Node in a BST 🔥
  • Find a pair with given target in BST

Weekly Contest (Leetcode)

  • Sort the People
  • Find All Good Indices
  • 2405. Optimal Partition of String

About

All the solutions of questions practised till date!.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published