When we start Activity A from Activity B, what will be the activity lifecycle.
Given activity stack with A on top -> A/B/A/C. Using SingleTop mode what will be the stack if we start activity A?
Given activity stack with A on top -> A/B/A/C. Using SingleTask mode what will be the stack if we start activity A?
What is the function of onNewIntent(). When it is called?
DSA quesn ->
Given an array and a value. Returnall subarrays that have sum equal to value.
Input : [1,2,1,3,4,1,1,1,1,5] 4
Output: [1,2,1]
[1,3]
[4]
[1,1,1,1]
Optimise the aprroach, Complexity should be less than O(n^2)
Puzzle Quesn -> 25 hourses 5 tracks Find the top 3 fastest horses.