but what does "The clock will show leading zeroes if the number is smaller than 10n−1" mean
@abhishekanand58983 жыл бұрын
Last index me hi kyun lana pdega...why cant we decrease every non zero char to 0??? And what is the significance of that 10^n-1 given in the question??
@HiteshTripathi3 жыл бұрын
Bro complete string is a number ....... to last index pe laoge tabhi to -1 karne se value kam hogi ..... (one th place)
@abhishekanand58983 жыл бұрын
@@HiteshTripathi Got it bhai...I misread it as decrease any digit by 1 and but it was decreasing number by 1.
@saurabhpandey51183 жыл бұрын
You want the clock to show 0 with as few operations as possible. In an operation, you can do one of the following: 1 decrease the number on the clock by 1, or 2 swap two digits (you can choose which digits to swap, and they don't have to be adjacent). here in 2nd operation we cannot swap adjecent digits but no one is talking about it ! plzz reply am not getting the exact thing or it is something that was some mistake from creators and now no one is talking about it since they got ac?
@HiteshTripathi3 жыл бұрын
It simply means they can be or cannot be adjacent ,
@ankitpal77933 жыл бұрын
Can you please tell whats with that -'0' in s[I]-'0'
@HiteshTripathi3 жыл бұрын
Convert char to int
@faroukslefteye22713 жыл бұрын
Why do you guys randomly start talking in hindu mid-video ?