Leetcode problem: https://leetcode.com/problems/subarray-sum-equals-k/ You might find these following videos helpful :-) Introduction to Java playlist: https://goo.gl/3Bw2FU C/C++ Programming :: https://goo.gl/99s2tV Data Structure in C/C++ Playlist: https://goo.gl/CSK1Iq CSS...
When I was describing the first 2d approach, dp[i][j] denotes if I can take some elements from the first 'i' elements in the array can I create the sum 'j'. dp[i-1][j] denotes if I take the first 'i' elements from the array **excluding the i-th element** can I form the sum...
When I was describing the first 2d approach, dp[i][j] denotes if I can take some elements from the first 'i' elements in the array can I create the sum 'j'.
dp[i-1][j] denotes if I take the first 'i' elements from the array **excluding the i-th element** can I form the sum 'j'.
You might find these following videos helpful :-)
Introduction to Java playlist: https://goo.gl/3Bw2FU
C/C++ Programming :: https://goo.gl/99s2tV
Data Structure in C/C++ Playlist: https://goo.gl/CSK1Iq
CSS : https://goo.gl/LYzYBC
C++ STL: https://goo.gl/s1Jdwp
Timecodes
0:00 Subset-sum/Coin change
11:49 Using 1D matrix
23:07 Number of ways to form a sum
28:16 Minimum/Maximum number of numbers to create sum
#CompetitiveProgramming
#Ad_hoc
#CodeForces
#Algorithm
You might find these following videos helpful :-) Introduction to Java playlist: https://goo.gl/3Bw2FU C/C++ Programming :: https://goo.gl/99s2tV Data Structure in C/C++ Playlist: https://goo.gl/CSK1Iq CSS : https://goo.gl/LYzYBC C++ STL: https://goo.gl/s1Jdwp...
You might find these following videos helpful :-)
Introduction to Java playlist: https://goo.gl/3Bw2FU
C/C++ Programming :: https://goo.gl/99s2tV
Data Structure in C/C++ Playlist: https://goo.gl/CSK1Iq
CSS : https://goo.gl/LYzYBC
C++ STL: https://goo.gl/s1Jdwp
#CompetitiveProgramming
#Ad_hoc
#CodeForces
#Algorithm
You might find these following videos helpful :-) Introduction to Java playlist: https://goo.gl/3Bw2FU C/C++ Programming :: https://goo.gl/99s2tV Data Structure in C/C++ Playlist: https://goo.gl/CSK1Iq CSS : https://goo.gl/LYzYBC C++ STL: https://goo.gl/s1Jdwp...
You might find these following videos helpful :-)
Introduction to Java playlist: https://goo.gl/3Bw2FU
C/C++ Programming :: https://goo.gl/99s2tV
Data Structure in C/C++ Playlist: https://goo.gl/CSK1Iq
CSS : https://goo.gl/LYzYBC
C++ STL: https://goo.gl/s1Jdwp
#CompetitiveProgramming
#Ad_hoc
#CodeForces
#Algorithm
You might find these following videos helpful :-) Introduction to Java playlist: https://goo.gl/3Bw2FU C/C++ Programming :: https://goo.gl/99s2tV Data Structure in C/C++ Playlist: https://goo.gl/CSK1Iq CSS : https://goo.gl/LYzYBC C++ STL: https://goo.gl/s1Jdwp...
You might find these following videos helpful :-)
Introduction to Java playlist: https://goo.gl/3Bw2FU
C/C++ Programming :: https://goo.gl/99s2tV
Data Structure in C/C++ Playlist: https://goo.gl/CSK1Iq
CSS : https://goo.gl/LYzYBC
C++ STL: https://goo.gl/s1Jdwp
#CompetitiveProgramming
#Ad_hoc
#CodeForces
#Algorithm
You might find these following videos helpful :-) Introduction to Java playlist: https://goo.gl/3Bw2FU C/C++ Programming :: https://goo.gl/99s2tV Data Structure in C/C++ Playlist: https://goo.gl/CSK1Iq CSS : https://goo.gl/LYzYBC C++ STL: https://goo.gl/s1Jdwp...
You might find these following videos helpful :-)
Introduction to Java playlist: https://goo.gl/3Bw2FU
C/C++ Programming :: https://goo.gl/99s2tV
Data Structure in C/C++ Playlist: https://goo.gl/CSK1Iq
CSS : https://goo.gl/LYzYBC
C++ STL: https://goo.gl/s1Jdwp
#CompetitiveProgramming
#Algorithm
If you enjoyed watching this video, make sure to leave a like/comment. :) Articles/Videos Links: 1. First, You should learn this from here: http://adilet.org/blog/sparse-table/ 2. Next you can see the বাংলা ব্লগঃ https://tanvir002700.wordpress.com/2015/05/27/sparse-table/ 3....
If you enjoyed watching this video, make sure to leave a like/comment. :)
Articles/Videos Links:
1. First, You should learn this from here: http://adilet.org/blog/sparse-table/
2. Next you can see the বাংলা ব্লগঃ https://tanvir002700.wordpress.com/2015/05/27/sparse-table/
3. Now you will understand what they tried to say in their writings, see the below blogs:
https://discuss.codechef.com/t/tutorial-disjoint-sparse-table/17404
https://www.hackerearth.com/practice/notes/sparse-table/
https://www.geeksforgeeks.org/sparse-table/
https://www.topcoder.com/community/competitive-programming/tutorials/range-minimum-query-and-lowest-common-ancestor/
https://tutorialspoint.dev/data-structure/arrays/sparse-table
4. Watch this video: https://www.youtube.com/watch?v=c5O7E_PDO4U
5. Nice Description and Problem List: https://cp-algorithms.com/data_structures/sparse-table.html
Source Code: https://gist.github.com/dipta10/72cc6c5577b339c0ae36bbb13453aece You might find these following videos helpful :-) Introduction to Java playlist: https://goo.gl/3Bw2FU C/C++ Programming :: https://goo.gl/99s2tV Data Structure in C/C++ Playlist:...
Source Code: https://gist.github.com/dipta10/72cc6c5577b339c0ae36bbb13453aece
You might find these following videos helpful :-)
Introduction to Java playlist: https://goo.gl/3Bw2FU
C/C++ Programming :: https://goo.gl/99s2tV
Data Structure in C/C++ Playlist: https://goo.gl/CSK1Iq
CSS : https://goo.gl/LYzYBC
C++ STL: https://goo.gl/s1Jdwp
#CompetitiveProgramming
#Algorithm
/* * Created by Dipta Das on 30-11-2018 * Title: 1082B - Vova and Trophies * Problem Link: https://codeforces.com/contest/1082/problem/B * Editorial and Source Code: https://codeforces.com/blog/entry/63544 */ You might find these following videos helpful :-) Introduction to...
/*
* Created by Dipta Das on 30-11-2018
* Title: 1082B - Vova and Trophies
* Problem Link: https://codeforces.com/contest/1082/problem/B
* Editorial and Source Code: https://codeforces.com/blog/entry/63544
*/
You might find these following videos helpful :-)
Introduction to Java playlist: https://goo.gl/3Bw2FU
C/C++ Programming :: https://goo.gl/99s2tV
Android Development: https://goo.gl/oRcdDq
Data Structure in C/C++ Playlist: https://goo.gl/CSK1Iq
CSS : https://goo.gl/LYzYBC
Java Swing Playlist: https://goo.gl/O4iaAV
Java Multithreading: https://goo.gl/5mXDYN
C++ STL: https://goo.gl/s1Jdwp
#CompetitiveProgramming
#Ad_hoc
#Codeforces
#Algorithm
/* * Created by Dipta Das on 23-11-2018 * Title: Binary Indexed Tree/Fenwich Tree * Editorial * https://www.topcoder.com/community/competitive-programming/tutorials/binary-indexed-trees/ *...
/* * Created by Dipta Das on 23-11-2018 * Title: Segment Tree Lazy Propagation * article by Shafayet Bhai: http://www.shafaetsplanet.com/planetcoding/?p=1591, http://www.shafaetsplanet.com/?p=1557 * Solution: https://gist.github.com/dipta10/ac694515d7370ce3ae56754a8a3f119e */...
Reference: http://www.shafaetsplanet.com/?p=1557 You might find these following videos helpful :-) Introduction to Java playlist: https://goo.gl/3Bw2FU C/C++ Programming :: https://goo.gl/99s2tV Android Development: https://goo.gl/oRcdDq Data Structure in C/C++ Playlist:...
Reference: http://www.shafaetsplanet.com/?p=1557 You might find these following videos helpful :-) Introduction to Java playlist: https://goo.gl/3Bw2FU C/C++ Programming :: https://goo.gl/99s2tV Android Development: https://goo.gl/oRcdDq Data Structure in C/C++ Playlist:...
// Problem link: http://codeforces.com/contest/1016/problem/A // Solution link: https://gist.github.com/dipta10/aae2a8e8d1743911f1075ab9f9568165/ You might find these following videos helpful :-) Introduction to Java playlist: https://goo.gl/3Bw2FU C/C++ Programming ::...