- Regex
What is Regex? Regex (short for Regular Expression) is a sequence of characters that defines a search pattern. Think of it as a mini-language specifically designed for matching, searching, extracting, and replacing text. Here is a real-world analogy: imagine you are in a library looking for books.…
- Chat System
A chat app performs different functions for different people. It is extremely important to nail down the exact requirements. For example, you do not want to design a system that focuses on group chat when the interviewer has one-on-one chat in mind. It is important to explore the feature…
- Unique ID Generator
In this chapter, you are asked to design a unique ID generator for a distributed system. Your first thought might be to use a primary key with the auto_increment attribute in a traditional database. However, auto_increment does not work in a distributed environment because a single database server…
- Introduction to Java
Java is one of the most widely used programming languages in the world, and for good reason. If you are starting your software development journey or looking to add a battle-tested language to your toolkit, Java is an excellent choice. In this tutorial, I will walk you through what Java is, why it…
- How to solve java problems