DEV Community

Cover image for Practicing System Design in JavaScript: Cache System and the Shortest Path for Graph
Ankit kumar
Ankit kumar

Posted on

4 2 2 2 2

Practicing System Design in JavaScript: Cache System and the Shortest Path for Graph

Introduction
Data structure is one of unavoidable challenges when applying the software engineer role. I studied basic data structures and wrote down an article in JavaScript before.

However, it’s hard to apply data structures to design a system or solve the real problem.

The target of article is for recording common problems with data structures. I choose two interesting problems from Cracking the coding Interview and turn the solutions to JavaScript. We will use hash table, linked list, list(array) to solve these questions.

Please Design a Cache for a Single System?
How to Find the Shortest Search Path between Two People?

Please Design a Cache for a Single System?
Requirements
Design a cache system with the following properties.

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay