Bhaiya i have a doubt…prateek bhaiya jo bhi code samjhate h…tab us code ki complexity samajh aa jaati h.
Lekin jab me khud questions practice karta hu to complexity nikalne me atak jaata hu.
To me different cases me time complexity kese calculate karte h vo kaha se padhu…like loops me alag - alag cases me different complexity hoti h vo sab…???