Microsoft Corporation
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by
Binary sort for rotated array
Bloom filters are space-efficient data structures used for quick membership queries.
Space-efficient data structure
Quick membership queries
False positives possible
Design a distributed system for generating tiny URLs
Use a distributed key-value store to store mappings of short URLs to original URLs
Implement a service that generates unique short URLs and stores them in the key-value store
Use a load balancer to distribute requests to multiple instances of the service for scalability
Consider using consistent hashing to evenly distribute the load across nodes in the system
posted on 29 Aug 2024
I applied via Naukri.com
I applied via Referral and was interviewed in Nov 2023. There was 1 interview round.
To find the shortest cycle in a graph, we can use algorithms like Floyd's Tortoise and Hare algorithm or Breadth-First Search.
Use Floyd's Tortoise and Hare algorithm to detect a cycle in the graph and then find the shortest cycle.
Alternatively, use Breadth-First Search (BFS) to find the shortest cycle in an undirected graph.
Consider the weight of edges if the graph is weighted, as it may affect the shortest cycle lengt
Software Engineer
1.9k
salaries
| ₹13 L/yr - ₹50 L/yr |
Senior Software Engineer
1k
salaries
| ₹21.1 L/yr - ₹85 L/yr |
Software Engineer2
975
salaries
| ₹20 L/yr - ₹72 L/yr |
Consultant
610
salaries
| ₹13 L/yr - ₹38 L/yr |
Support Engineer
584
salaries
| ₹7 L/yr - ₹30 L/yr |
Amazon
Deloitte
TCS