LeetCode 166. Fraction to Recurring Decimal Explanation and Solution

preview_player
Показать описание
Subscribe and turn on "All notifications" for my channel!

Thanks in advance!
Рекомендации по теме
Комментарии
Автор

Thanks for the video, and can you please elaborate sb.insert(..) function used at 5:18.

downtowngedi
Автор

This video really helped. The only correction I would like to suggest is here is:-

divisor=denominator
dividend=numerator
remainder=dividend%divisor

There is nothing wrong with the logic although, thank you very much for this video.

harshitsaxena
Автор

The overflow hint really helped thanks!

amartyamishra
Автор

You have inverted the meaning of divisor and dividend. Dividend = Quotient*divisor + Remainder
It should be dividend/divisor not the opposite : )

ashishdukare