Question
If 'N' is the greatest four digit number which when
divided by 27, 6, 8 and 9 Leaves in each case the same remainder of 5, then the sum of the digits of 'N' is __________.Solution
Solution –LCM of 27, 6, 8 and 9=216
Greatest number of 4 digit =9999
Dividing the largest four-digit number by the LCM of the given numbers
Remainder =63
Largest Divisible number of 4 digit by 216(27,6,8,9) =9999-63=9936
divided by 27, 6, 8 and 9 Leaves remainder 5 =9936+5=9941
now the sum of digits =9+9+4+1=23.
State True or False
Kernel level thread cannot share the code segment.
Which of the following protocol is a network layer protocol and used for reporting errors?
What is the time complexity of a Binary Search algorithm on a sorted array of 'n' elements?
What is the primary purpose of Named Entity Recognition (NER)?
Consider the in-order traversal of a Binary Search Tree. What characteristic does the sequence of visited nodes possess?
In a 0/1 Knapsack problem implemented using dynamic programming, a common mistake is to allow items to be reused, effectively turning it into an unbound...
In a backtracking algorithm, what happens when a partial solution is found to violate a constraint?
Consider the following Python code:
text = "banana"
char_to_find = 'a'
count = 0
for i in range(len(text)):
  if ...
What is a common disadvantage of greedy algorithms?
What is the primary purpose of the UNION ALL operator in SQL?