Coder Social home page Coder Social logo

shri6apr / aditya-verma-youtube-playlist-code Goto Github PK

View Code? Open in Web Editor NEW

This project forked from skjha1/aditya-verma-youtube-playlist-code

0.0 0.0 0.0 73 KB

This repo consists of aditya verma youtube channel code for different section.

C++ 100.00%

aditya-verma-youtube-playlist-code's Introduction

Aditya-verma-youtube-playlist-code

This repo consists of aditya verma youtube channel code for different section, I am still working this soon it will be updated fully, This repo I made for the purpose of revision Time and space complexity will be updated for all programs.

Starting a new 100-day journey with LeetCode problems! Simplifying the tough ones for those in need. Let's tackle coding challenges together! Click below link! ๐Ÿš€ #LeetCodeSimplified

The-Leetcode-Sprint

Let's connect on discord for Technical and DSA related Discussion: DisCord

If you want to explore more programes of DSA you can visit this REPO

Show some ย โค๏ธย  by starring this repository! It will push me to give more percentage of efforts

Dynamic Programming

S.No Problem Handwritten Notes Time Space
1 Knapsack Recursion ๐Ÿ“˜ O(2^n) O(1)
2 Knapsack Memoization-Top-Down ๐Ÿ“˜ O(N*W) O(N*W)
3 Knapsack Bottom-Up(DP) ๐Ÿ“˜ O(N*W) O(N*W)
4 Subset sum(Knapsack Variation) ๐Ÿ“˜ O(N*W) O(N*W)
5 Equal sum partition(subset sum & Knapsack Variation) ๐Ÿ“˜ O(N*W) O(N*W)
6 Count of Subsets with given Sum(subset sum & Knapsack Variation) ๐Ÿ“˜ O(N*W) O(N*W)
7 Minimum subset sum difference ๐Ÿ“˜ O(N*W) O(N*W)
8 Count the number of subset with given difference ๐Ÿ“˜ O(N*W) O(N*W)
9 Target sum(Leetcode) ๐Ÿ“˜ O(N*W) O(N*W)
10 Unbounded Knapsack ๐Ÿ“˜ O(N*W) O(N*W)
11 Rod cutting problem(Unbounded Knapsack) ๐Ÿ“˜ O(N*W) O(N*W)
12 Coin change problem : maximum no of ways ๐Ÿ“˜ O(N*W) O(N*W)
13 Coin change problem: Minimum number of coin ๐Ÿ“˜ O(N*W) O(N*W)
14 Longest Common Subsequence Recursive ๐Ÿ“˜ O(N*W) O(N*W)
15 Longest Common Subsequence Top down (Memoization) ๐Ÿ“˜ O(N*W) O(N*W)
16 Longest Common Subsequence Bottom Up(DP) ๐Ÿ“˜ O(N*W) O(N*W)
17 Longest Common Substring ๐Ÿ“˜ O(N*W) O(N*W)
18 Print Longest Common Subsequence ๐Ÿ“˜ O(N*W) O(N*W)
19 Shortest Common Supersequence ๐Ÿ“˜ O(N*W) O(N*W)
20 Minimum insertion & deletion to convert a to b ๐Ÿ“˜ O(N*W) O(N*W)
21 Longest Palindromic Subsequence ๐Ÿ“˜ O(N*W) O(N*W)
22 Minimum number of deletions to make a string palindrome ๐Ÿ“˜ O(N*W) O(N*W)
23 Print Shortest Common Supersequence ๐Ÿ“˜ O(N*W) O(N*W)
24 Longest repeating subsequence ๐Ÿ“˜ O(N*W) O(N*W)
25 Sequence pattern matching ๐Ÿ“˜ O(N*W) O(N*W)
26 Minimum Number of insertion to make a string palindrome ๐Ÿ“˜ O(N*W) O(N*W)
27 Matrix Chain Multiplication Recursive ๐Ÿ“˜ O(N*W) O(N*W)
28 Matrix Chain Multiplication Top Down (Memoization) ๐Ÿ“˜ O(N*W) O(N*W)
29 Palindrome Partitioning Recursive ๐Ÿ“˜ O(N*W) O(N*W)
30 Palindrome Partitioning Memoization ๐Ÿ“˜ O(N*W) O(N*W)
31 Palindrome Partitioning Memoized optimization ๐Ÿ“˜ O(N*W) O(N*W)
32 Evaluate Expression to true Recursive ๐Ÿ“˜ O(N*W) O(N*W)
33 Evaluate expression to true memoization using map ๐Ÿ“˜ O(N*W) O(N*W)
34 Evaluate expression to true memoization using 3d array ๐Ÿ“˜ O(N*W) O(N*W)
35 Scramble string recursive ๐Ÿ“˜ O(N*W) O(N*W)
36 Scramble string Top Down ๐Ÿ“˜ O(N*W) O(N*W)
37 Egg dropping problem recursive ๐Ÿ“˜ O(N*W) O(N*W)
38 Egg dropping problem Top Down(memoization) ๐Ÿ“˜ O(N*W) O(N*W)
39 Egg dropping problem memoization optimization ๐Ÿ“˜ O(N*W) O(N*W)
40 Dynamic programming on trees Syntax ๐Ÿ“˜ O(N*W) O(N*W)
41 Diameter of binary tree ๐Ÿ“˜ O(N*W) O(N*W)
42 Max path sum from any node to any ๐Ÿ“˜ O(N*W) O(N*W)
43 Max path sum from leaf to leaf ๐Ÿ“˜ O(N*W) O(N*W)

Stack

S.No Problem Handwritten Notes Time Space
1 Nearest greater to right ๐Ÿ“˜ O(n) O(n)
2 Nearest greater to left ๐Ÿ“˜ O(n) O(n)
3 Nearest smaller to left ๐Ÿ“˜ O(n) O(n)
4 Nearest Smaller to right ๐Ÿ“˜ O(n) O(n)
5 Stock span problem ๐Ÿ“˜ O(n) O(n)
5 Maximum Rectangular Area in a Histogram ๐Ÿ“˜ O(n) O(n)
6 Max area rectangle in Binary matrix ๐Ÿ“˜ O(n) O(n)

Binary Search

S.No Problem Handwritten Notes Time Space
1 Binary Search ๐Ÿ“˜ O(logn) O(logn)
2 Binary search on reverse sorted array ๐Ÿ“˜ O(logn) O(logn)
3 Order not known or Agonostic BS ๐Ÿ“˜ O(logn) O(logn)

Heap

S.No Problem Handwritten Notes Time Space
1 Kth smallest element ๐Ÿ“˜ O(n log k) O(n log k)
2 Kth largest element in an array ๐Ÿ“˜ O(n log k) O(n log k)
3 Nearly Sorted Algorithm or sort k sorted array ๐Ÿ“˜ O(n log k) O(n log k)

Sliding Window

S.No Problem Handwritten Notes Time Space
1 Maximum Sum Subarray of size K ๐Ÿ“˜ O(n) O(1)
2 First negative integer in every window of size k ๐Ÿ“˜ O(n) O(K)

aditya-verma-youtube-playlist-code's People

Contributors

skjha1 avatar deepakkpatil avatar namanag0502 avatar rakshitgupta621 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.