sir in editorial this problem was solved using stringstream , it would be great if you explain a little bit about stringstream in next potd video.
@codestorywithMIK16 күн бұрын
Hey there, Oh i didn’t notice that. But yes indeed stringstream can be used to solve this. I will make a separate video on stringstream. But meanwhile, search stringstream in this link - github.com/MAZHARMIK/Cpp-STL-Quick-Help You will get to know a lot of things
@amanpaliwalvlogs686015 күн бұрын
Radhe Radhe ❤
@codestorywithMIK15 күн бұрын
Radhe Radhe Aman ❤️😇🙏
@AkhileshChouhan-d4v16 күн бұрын
Great content
@codestorywithMIK16 күн бұрын
🙏❤️😇
@MohammedHasmi57716 күн бұрын
Sir i am biggest fan of you❤
@aws_handles16 күн бұрын
Me too bro 😁
@piyush0mandloi16 күн бұрын
Thank you sir
@JagannathDebGunin16 күн бұрын
Dada,Can you please make a video on Sieve of eratosthenes?
@codestorywithMIK16 күн бұрын
Oh yes yes. My bad i missed to update on this. This video is almost ready, just needed some editing and corrections. Will upload this week for sure ❤️
@oppo-px5hf16 күн бұрын
@@codestorywithMIK yes need video on this plz
@aws_handles16 күн бұрын
yes please
@best456716 күн бұрын
class Solution { public: string addSpaces(string s, vector& spaces) { int n = spaces.size(); for(int i=0 ; i
@cabbi916 күн бұрын
Please cover yesterday’s CF contest’s question C
@hellsterkun876416 күн бұрын
Was able to solve today's question by writing code into a story, just as you taught us, Mik Sir❤ P.S.: Sir, please check your mail and revert back if possible.
@codestorywithMIK16 күн бұрын
Awesome. My bad i might have missed the email. Can you please resend it ?
@HumanBeing-m1x15 күн бұрын
please make video on manacher algorithm for longest palindrome string and also make video on z algorithm
@aizad786iqbal16 күн бұрын
khud se kar liya but iska runtime kaafi high tha class Solution { public String addSpaces(String s, int[] spaces) { StringBuilder sb = new StringBuilder(s); int count = 0; for(int x : spaces){ sb.insert(x+count, ' '); count++; } return sb.toString(); } }
@hike_explorer15 күн бұрын
EYES ON THE HOLE -MOTIVATION
@CHANDANKUMAR-ck3is16 күн бұрын
bhaya isn't like using the + while concatinating the string takes much space there ?
@christopherhenry98116 күн бұрын
bhaiya can u make a video to find no of nodes at a distance k from given node in tree
@DrOnZeR202216 күн бұрын
Just use dfs and a count pointer every time u visit a node just update the count and when count is equal to k then return in this way u Can find no of nodes at a distance k .U can also use bfs that is easier than this
@AryanVats60315 күн бұрын
my code string addSpaces(string s, vector& spaces) { int j=0; string ans=""; for(int i=0;i
@paragbansal316 күн бұрын
Esa same code mene java me Kiya toh tle aa raha hai
@codestorywithMIK16 күн бұрын
Please share your core once. Let’s check
@AryanVats60315 күн бұрын
write condition for pointer on spaces array also..coz u might be accessing array index beyond array size
@jain518416 күн бұрын
why i got memory limit exceed
@codestorywithMIK16 күн бұрын
Please share your core once. Let’s check
@AryanGupta-202415 күн бұрын
@@codestorywithMIK class Solution { public: string addSpaces(string s, vector& spaces) { string ans=""; int c=0; for(int i=0;i
@jain518415 күн бұрын
@@codestorywithMIK hello sir class Solution { public: string addSpaces(string s, vector& spaces) { string ss =""; int j = 0; for(int i = 0 ; i
@jeehub04116 күн бұрын
Bhaiya I think Time complexity would be just O(n) because we are using if condition which is O(1).❤