ขนาดวิดีโอ: 1280 X 720853 X 480640 X 360
แสดงแผงควบคุมโปรแกรมเล่น
เล่นอัตโนมัติ
เล่นใหม่
thank u brother ,
*if (ans.size() == 0) return -1;
You can still do it in one loop and without using additional array.
Thanks Brother!!
Any time! :)
Sir yha pr app postion jb 2 pr phuche to apne phle no count nhi Kiya kyu
Apne starting ki term 0 ,0,0,0,0,....0. 1st index se count Kiya kyu
is methond ko mere donst ne suggest kiya tha but us time samajh nahi aaya ki wo kya kahana chhah raha tha..but thank you!
Welcome
Bro we should also not use the frequency array. That's the whole point na.
Yupp you are correct :|
kya koi iska solution without using vector de sakta hai...
bhe GFG me submit nahi hoga
kyuki function ko return bhi karna hota hai so isliye vector me store karke return kar diya
thank u brother ,
*if (ans.size() == 0)
return -1;
You can still do it in one loop and without using additional array.
Thanks Brother!!
Any time! :)
Sir yha pr app postion jb 2 pr phuche to apne phle no count nhi Kiya kyu
Apne starting ki term 0 ,0,0,0,0,....0. 1st index se count Kiya kyu
is methond ko mere donst ne suggest kiya tha but us time samajh nahi aaya ki wo kya kahana chhah raha tha..
but thank you!
Welcome
Bro we should also not use the frequency array. That's the whole point na.
Yupp you are correct :|
kya koi iska solution without using vector de sakta hai...
bhe GFG me submit nahi hoga
kyuki function ko return bhi karna hota hai so isliye vector me store karke return kar diya