Elevator System Low Level Design
Problem definition You are tasked with designing an elevator system for an office building. Questions for the interviewer Requirements R1. […]
Problem definition You are tasked with designing an elevator system for an office building. Questions for the interviewer Requirements R1. […]
Problem definition This section represents the initial requirements and expectations provided by the interviewer. Example:Design a vending machine for snacks.
The task “Integer to English Words” can be solved as follows:
I’m going to describe how to solve the task Integer to Roman from LeetCode using greedy algorithm. Time complexity: O(1)
We can’t use Dijkstra algorithm to find the shortest path in a graph if there are any negative weights in
The Dijkstra algorithm serves to find the cheapest path in acyclic graphs with positive weights. The algorithms can be described
This is a very fast algorithm, but can only be used with arrays with integer values. This algorithm can be
This algorithm is slightly faster than merge sort and heap sort on random data. Uses a divide-and-conquer approach. The main
Merge sort is an efficient, stable divide-and-conquer algorithm. The main idea of this algorithm is as follows: Time complexity: O(n
This algorithm is smarter than bubble sort and selection sort. The main idea of the algorithm is as follows: The