Question
What is the smallest number that should be subtracted
from 1798425 so that the resulting number is divisible by 8?Solution
We have, 1798425 ÷ 8 = 224803.125 So, remainder when 1798425 is divided by 8 = 0.125 X 8 = 1 Therefore, smallest number that must be subtracted = 1
Output of below code
public class Prg {
public static void main(String args[]){
System.out.print("A" + "B" + 'A');
}
...The Master Theorem gives time complexity for recurrences of the form:
Which of the following is true for the time complexity of binary search?
Which is not true about minimum spanning tree?
Which sorting algorithm divides the array into halves recursively?
Which command is TCL command
Which of the following is substring of “IXAMBEE”?
Which data structure is used in BFS (Breadth-First Search)?
Which of the following is considered the strongest type of encryption method in modern cyber security practices?
In a binary search tree (BST), what is true about the left child of a node?