Govt. Exams
Entrance Exams
Let the 4th number be x. Then 5th number = previous number + x. If 5th = 20 and 6th = 32, then 6th = 5th + 5th_previous, so 32 = 20 + (5th_previous). Therefore, 5th_previous = 12. Since 5th_previous is the 4th number, the answer is 12.
Average speed = Total Distance / Total Time. Distance one way = 240 km. Time from A to B = 240/60 = 4 hours. Time from B to A = 240/40 = 6 hours. Total Distance = 480 km, Total Time = 10 hours. Average Speed = 480/10 = 48 km/h.
The Internet Layer (Layer 3) handles IP addresses and routing. Transport Layer (Layer 4) handles ports.
MapReduce is a programming model for processing large datasets in parallel by mapping data and then reducing results.
Google designs distributed systems that can scale horizontally across many machines to handle billions of requests.
API Gateway is a server that acts as an intermediary between clients and microservices, handling routing, authentication, and load balancing.
Exponentiation is right-associative in Python. 32 = 9, then 29 = 512
Memoization is an optimization technique where results of expensive function calls are cached and returned when same inputs occur again.
MergeSort has O(n log n) worst-case and is stable. QuickSort is O(n²) worst-case, HeapSort is not stable.
QuickSort uses O(log n) space for the recursion call stack in the average case.