i tried it without binary search using sets can you tell me why my code is not working double findSmallestMaxDist(vector<int> &stations, int k) { double d;multiset<double>st; for(int i=1;i<stations.size();i++){ st.insert(abs(stations[i-1]-stations[i])); } while(k--){ st.insert((*(st.rbegin())/2)); st.insert((*(st.rbegin())/2)); st.erase(--(st.end())); } double result = *(st.rbegin()); return floor(result * 100) / 100; }
@Lawandorder02 ай бұрын
daily solution here thelogictutorial.blogspot.com/2024/05/find-pair-given-difference-17-may.html#google_vignette
@Dave-hu9wf3 ай бұрын
*Promosm*
@user-eb1cm6ci1h4 ай бұрын
the code is not on replit. It's showing page not found.
@gfgsolutions014 ай бұрын
we are extremely sorry for the inconvenience. Now the link is fixed. Thank You For Your Feed back
@jeemainswbjeebooksanddpps43676 ай бұрын
Thanks a Lot
@gfgsolutions016 ай бұрын
Most Welcome! Buddy ❤️❤️
@sonyabayas57326 ай бұрын
link is unclickable
@gfgsolutions016 ай бұрын
yes Due To some Issue link is unclickable. Sorry for the inconvenience .
@sonyabayas57326 ай бұрын
thank you
@gfgsolutions016 ай бұрын
You are welcome Buddy ❤️
@sonyabayas57326 ай бұрын
Thanks ❤
@gfgsolutions016 ай бұрын
You're welcome 😊
@sonyabayas57326 ай бұрын
Thank you❤
@gfgsolutions016 ай бұрын
Thanks Buddy for Engage With Us ❤️❤️
@sonyabayas57326 ай бұрын
Thank you ❤
@gfgsolutions016 ай бұрын
Thanks For Your Response Bro 💌
@sonyabayas57326 ай бұрын
Thanks ❤
@gfgsolutions016 ай бұрын
Thanks For Your Support❤
@sonyabayas57326 ай бұрын
Thanks 💝
@gfgsolutions016 ай бұрын
Thanks For Your Response ❤❤
@ketankbc7 ай бұрын
nice automation
@gfgsolutions017 ай бұрын
Thanks For Your Support ❣️❣️ Subscribe For Daily Videos 😊
@gfgsolutions017 ай бұрын
Subscribe @gfgsolutions01 For More Videos Code File lInk : replit.com/@GFGSolutions/Addition-Of-Two-Integers#Main.java Follow Us On Instagram : instagram.com/gfg_solutions?igshid=YTQwZjQ0NmI0OA==
@sk100748 ай бұрын
Keep it up bro 👍
@gfgsolutions018 ай бұрын
Thanks For Your Support ❣️❣️ Subscribe For Daily Videos 😊
@somit_jaiswal8 ай бұрын
Expected Time Limit
@gfgsolutions018 ай бұрын
Thanks for your feedback Now the solution is updated Check the description for new updated solutions
@roshanchoudhary77398 ай бұрын
Wrong solution
@gfgsolutions018 ай бұрын
Thanks for your feedback Now the solution is updated Check the description for new updated solutions
@vivekghori55299 ай бұрын
🎉🎉👍🙏
@gfgsolutions019 ай бұрын
🤩😍🤩
@vivekghori55299 ай бұрын
ok thank you bro.
@gfgsolutions019 ай бұрын
Welcome
@vivekghori55299 ай бұрын
hi
@gfgsolutions019 ай бұрын
Hlw
@baburqureshi68429 ай бұрын
I guess you've made your repository private that's why it's not visible on clicking the link