View Discussion Improve Article Save Article Like Article Given a positive N, the task is to find the last two digits of 7N.
Approach: A general approach to finding the last K digits of XY is to discuss this article in logarithmic time complexity. In this article, we will discuss the constant time solution.
Based on the above observations we have the following cases:
Below is the implementation of the above approach:
Time Complexity: O(1) Description for Correct answer: Three digit number \( \Large =100x+10y+z \)To make number after changing last two digit\( \Large =100x+10z+y \)Now,\( \Large 100x+10y+z=100x+10z+y-45 \)\( \Large 9z-9y=45 \) \( \Large z-y=5 \) Part of solved Number series questions and answers : >> Aptitude >> Number series Comments Similar Questions No worries! We‘ve got your back. Try BYJU‘S free classes today! No worries! We‘ve got your back. Try BYJU‘S free classes today! No worries! We‘ve got your back. Try BYJU‘S free classes today! No worries! We‘ve got your back. Try BYJU‘S free classes today! Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses |