Question
calculate the complexity of the below recursive
code Int f(int n) { If(n return 1; return f(n/2)+f(n/2); }Solution
Here the function is recursively calling on f(n/2) twice and also one line for the condition when n=0. Hence 1 is the correct choice.
Which Java keyword is used to inherit a class?
Which of the following is used to handle exceptions in Java?
Consider a table Orders with columns OrderID, CustomerID, OrderDate, and TotalAmount. Which SQL query would correctly find the total number of orders an...
ch data structure is used in Depth-First Search (DFS)?
In Java, which data type is used to store true or false values?
In Python, what does len() function do?
Which of the following systems is typically designed to support managerial decision-making? Â Â Â Â Â Â
Which of the following algorithms is commonly used in Machine Learning for clustering tasks?   Â
In Java, which method is used to start a thread?
 What is the output of the following code: x = 5; y = 2; print(x ** y)?