Рет қаралды 66,247
Check our Website:
In case you are thinking to buy courses, please check below:
Link to get 20% additional Discount at Coding Ninjas: bit.ly/3wE5aHx
Code "takeuforward" for 15% off at GFG: practice.geeksforgeeks.org/co...
Code "takeuforward" for 20% off on sys-design: get.interviewready.io?_aff=takeuforward
Crypto, I use the Wazirx app: wazirx.com/invite/xexnpc4u
Take 750 rs free Amazon Stock from me: indmoney.onelink.me/RmHC/idje...
Earn 100 rs by making a Grow Account for investing: app.groww.in/v3cO/8hu879t0
Linkedin/Instagram/Telegram: linktr.ee/takeUforward
---------------------------------------------------------------------------------------------------------------------------------------------------- Check Relevel: relvl.co/xeby
Check SDE SHEET/Telegram/Linkedin and others: linktr.ee/takeUforward
Correction in Video: The reason for TLE might be the reason that .size() returns size_t which is unsigned, so if somehow .size()-1 was being calculated or anything that might turn the value to a negative number it would go to the maximum possible value of size_t which is huge. That's why many times we see something like if(i less than (int)g.size())
Correction Credits: Aviral Rana