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

Overview

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. 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)
You might also like...
This repo is created to post all my codes and learning of C++ and DSA in C++

This is a readme file where you can read some documentaton about learning on c++and Data Structures and algorithms . I will be posting each and every

C code that make nice posters
C code that make nice posters

ProgrammingPosters C that that make nice posters of short C programs. This generates A2 300D DPI images of programs that implement intresting graphics

Code profiler based on Frida

Code Profiler Based on Frida This repository contains the code to profile LIEF functions with Frida. Get Started Make sure to download the right versi

An Repositery with Ghost eShop Homebrew Source Code
An Repositery with Ghost eShop Homebrew Source Code

Ghost-Eshop-Alternative-3DS An Alternative eShop for Nintendo 3DS This is a clone of Universal-Updater Download Requirement -Latest version available

Public Code Repository of the iRotate Active SLAM for Omnidirectional robots at the Max Planck Institute for Intelligent Systems, TΓΌbingen
Public Code Repository of the iRotate Active SLAM for Omnidirectional robots at the Max Planck Institute for Intelligent Systems, TΓΌbingen

iRotate: Active Visual SLAM for Omnidirectional Robots This repository contains the code of iRotate, an active V-SLAM method submitted to RA-L + IROS2

BRL-CAD's main source code

BRL-CAD Release 7.32.4 http://brlcad.org/ BRL-CAD is a powerful cross-platform open source combinatorial solid modeling system that incl

This is the code repository for my book C++20 - Get the Details.
This is the code repository for my book C++20 - Get the Details.

Cpp20 This is the code repository for my book C++20 - Get the Details. It has more than 200 running examples. The names of the directories reflect the

Simulation code for the specific PDP-10 serial number 32 at the Stanford A. I. Lab in 1974 as a solo processor with all the I/O devices simulated as on the PDP-10. Omit the co-processor PDP-6 sn16.
Simulation code for the specific PDP-10 serial number 32 at the Stanford A. I. Lab in 1974 as a solo processor with all the I/O devices simulated as on the PDP-10. Omit the co-processor PDP-6 sn16.

KA10 sn32 Synopsis This repository contains software and documentation for running the unique PDP-10 KA serial number 32 that was at Stanford in July

Cmusic source code, based on the CARL 0.2.0 distribution

CMUSIC These are the sources and makefiles for a build of the classic CARL cmusic and related programs. The build has been tested on OSX and Linux, an

Comments
  • Error in target sum code.

    Error in target sum code.

    In the findTargetSumWays instead of passing (sum+diff)/2 , pass abs(sum+diff)/2. Else it will result it runtime error since diff can be negative too.

    opened by mssandeepkamath 0
  • Update 13 Coin change problem_ Minimum number of coin.cpp

    Update 13 Coin change problem_ Minimum number of coin.cpp

    here only change return. In the leetcode problem your program give error when testcase is "array- [2] and sum- 3". You can check that question Q322. Coin Change.

    opened by Rounak00 0
Owner
Shivendra k jha
I am a techie who's exploring technologies and believes in consistent learning and hard work.
Shivendra k jha
Different Example Programs from different programming languages

Example Programs Don't repeat the same program again. Code Refactoring and Code Cleanup are accepted Name the File According to the Program written in

Anjal Binayak 17 Dec 7, 2022
This repo is all about different data structures and algorithms..

Data Structure and Algorithm : Want to learn data strutrues and algorithms ??? Then Stop thinking more and start to learn today. This repo will help y

Priyanka Kothari 7 Jul 10, 2022
🧼 Cleanly pause and play your YouTube videos while cooking/crafting/doing your makeup by waving your hand over a proximity sensor!

?? Cleanly pause and play your YouTube videos while cooking/crafting/doing your makeup by waving your hand over a proximity sensor!

Tala Buwadi 9 Dec 5, 2022
This repository aims to solve and create new problems from different spheres of coding. A path to help students to get access to solutions and discuss their doubts.

CPP-Questions-and-Solutions ?? This repository aims to solve and create new problems from different spheres of coding, which will serve as a single po

null 49 Oct 3, 2022
Practice C++ by solving well-prepared exercises on different topics

Practice C++ Practice C++ by solving well-prepared exercises! Complexity level is middle. Not "how to write a for loop and push to a vector", but rath

null 96 Dec 3, 2022
Fibonacci algorithm implemented in C++ in different programming flavors

Here we compare Fibonacci algorithm implemented in C++ but in different programming styles, in order to understand which style compiles to shorter bin

Yegor Bugayenko 12 Jun 24, 2022
Homework repo of Modern Cpp for CV (2020Spring) at UniBonn

Modern C++ Course For CV (2020) source file can be found here. Homework Assignments Homework # Title Homework sheet Files and Data MyStatus Homework_1

Yujie He 25 Oct 8, 2022
This repo is just for fun while playing with some OOP constructions in C

c-oop This repo is just for fun while playing with some OOP constructions in C. As it is not intended to be of any OOP reference of implementation it

Charly Batista 3 Jun 22, 2021
This repo is for competitive coders. In the readme file you will get the list of questions. You can contribute by adding your solutions or by providing the optimized solutions which are answered already.

Hello, Problem Solvers !!! ?? What it's about? ??‍?? This repository is for Competitive Coders to get started with Open-source. ?? We have curated a l

null 3 Oct 22, 2022
Connect 4 clone written with c++ with the RSGL library. Based on my connect 4 clone written in python/pygame and my SDL port of that same repo. Along with 3DS support by SaCode

RSGL-Connect-4 Building linux git clone https://github.com/RSGL-Org/RSGL-Connect-4.git cd RSGL-Connect-4 make ./Connect4 Bulding 3ds (3ds support

RSGL 1 Dec 28, 2022