Starting se app se padh raha hu ....wait karta hu daily kyo ki app ka content other KZbinrs se acha hai
@tejas26363 ай бұрын
Sir can we Solve this by Sorting in following way public int compareTo(Project p1) { if(this.capital - p1.capital != 0) return this.capital - p1.capital; return p1.profit - this.profit; } Like Ascending order Sorting based on Capital but if Capitals are equal then sort based on profit in decreasing order.. Please reply..
@shashwat_tiwari_st3 ай бұрын
Hi. I don't think think this will work.
@shashwat_tiwari_st3 ай бұрын
You have tried submitting it?
@tejas26363 ай бұрын
@@shashwat_tiwari_st Yess Sir I tried it.. It sorted the objects as we require but couldn't get correct output.. Thank you sir 🙌🏻
@priyankanagpal22073 ай бұрын
Don't we have to remove all entries of max heap?
@shashwat_tiwari_st3 ай бұрын
No, not needed.
@sheldoncooper79903 ай бұрын
Thank you for being a help in my leetcode daily challenge questions. I am on day 107. I really admire the way you teach every single thing in detail!
@TanushkaKashyap-cf7sd3 ай бұрын
wrong answers aa rhe h!
@shashwat_tiwari_st3 ай бұрын
Nhi toh. Konse test case ke liye?
@NishantPandat-l3q3 ай бұрын
java DSA course main ab kya padhne wale hai please reply aapne bola tha sir ki 1 june ko bataynge please reply
@shashwat_tiwari_st3 ай бұрын
It will be released today positively
@deluluvish3 ай бұрын
thank u so much for explaining this. your videos are a daily motivation to atleast complete the leetcode daily challenge, even when it gets tough
@thenikhildaiya.3 ай бұрын
Thank you so much! Aapke explanation samajh ke khud hi code kardiya! and it did'nt even feel like a hard question.