AlgoBasedQuestions_CodeStore
AlgoBasedQuestions_CodeStore
12. What are Red-Black Trees and B-Trees? What is the best
use case for each of them?
14. What are the Dijkstra and Prim algorithms, and how are
they implemented? How does the Fibonacci heap relate to
them?
15. What is the Bellman-Ford algorithm for finding single
source shortest paths? What are its main advantages over
Dijkstra?
16. What is A*, what are its implementation details, and what
are its advantages and drawbacks in regard to traversing
graphs towards a target?
19. A significantly large static set of string keys has been given,
together with data for each of those keys. We need to create
a data structure that allows us to update and access that data
quickly, with constant time even in worst cases. How can we
solve this problem?
20.
21. You have a set of date intervals represented by StartDate
and EndDate. How would you efficiently calculate the longest
timespan covered by them?What will be the time complexity?
22. You are given the task of choosing the optimal route to
connect a master server to a network of N routers. The
routers are connected with the minimum required N-1 wires
into a tree structure, and for each router we know the data
rate at which devices (that are not routers) that are
connected to it will require information. That information
requirement represents the load on each router if that router
is not chosen to host the master. Determine which router we
need to connect the master to in order to minimize
congestion along individual lines.