if you won't use will give tle , Instead, we used a reference to the vector in the map, which allows us to modify the vector in place and also saves the overhead of copying the vector.
Ma'am, your video explanations for every problem are superb but can you please let us know how did you came to this approach (best approach). For example, for this question how did you came to know that we have to apply bfs?.......And also wanted to ask for help regrading DP. Ma'am, can you please share how you started DP and how you practiced the same?. Thank you.
temp ke vector me & lagane se kya hua h ??
if you won't use will give tle ,
Instead, we used a reference to the vector in the map, which allows us to modify the vector in place and also saves the overhead of copying the vector.
very well explained.
Ma'am, your video explanations for every problem are superb but can you please let us know how did you came to this approach (best approach). For example, for this question how did you came to know that we have to apply bfs?.......And also wanted to ask for help regrading DP. Ma'am, can you please share how you started DP and how you practiced the same?. Thank you.
isme bfs kyun apply kiya gya ? hum 1 se 0 kyun nahi jaa sakte ??