Amazon Interview Solution: Power of 2 Add Comment Edit Given a positive integer N . The task is to check if N is a power of 2 . That is N is 2 x for some x. Input: The first line contain... Read More
Amazon Interview Solution: Repetitive Addition Of Digits Add Comment Edit Question Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. Input: The first line... Read More
Josephus Number ( জোসেফাস নম্বর) Add Comment Edit ধরা যাক ৫ জন প্রতিযোগী আছে । এখন প্রতিবার এলিমিনেশন এর সময় ২য় নম্বর প্রতিযোগীকে আউট করতে হবে এবং এভাবে সর্বশেষ যে প্রতিযোগী থাকবে সেই... Read More