## Celebrity Problem

Introduction Welcome Back, Ninja! Today this article will discuss one of the most frequently asked questions in Google, Apple, Amazon – “The Celebrity Problem”. Let’s start with the problem statement and work our way to the solution. Problem Statement There ...

## Non-Preemptive Priority Based Scheduling

Introduction We know that various scheduling algorithms are used to assign resources to perform different tasks. One of these CPU algorithms is Priority based scheduling. As the name itself suggests, it is related to the priority of the task to ...

## Special Case of Josephus Problem: When K=2

Introduction In this article, we will discuss a special case of Josephus problem, when k=2. But before that, we recommend you to visit the previous blog on ‘How to solve Josephus problem using Recursion and Linked List’. We discussed in ...

## Preemptive Priority Based Scheduling

Introduction We know that various scheduling algorithms are used to assign resources to perform different tasks. One of these CPU algorithms is Priority based scheduling. As the name itself suggests, it is related to the priority of the task to ...

## How to solve the Josephus Problem using Recursion and Linked Lists?

Introduction Josephus’ problem is a mathematical counting-out problem and claims that it originates from an incident in the first century when the Jewish revolted against Rome. When they saw that they couldn’t stand against the Roman army, Historian Flavius Josephus ...

## Analysing Algorithms Using Master Theorem

Introduction In medieval times, mighty rulers would expand their kingdoms by using a principle called divide and conquer. But have you ever wondered why their methods were so effective? It was because dividing a large territory into smaller ones and ...

## Best Ways To Learn Data Structures And Algorithms

Introduction You may overhear people saying, “It’s important to master Data Structures and Algorithms.” But have you ever thought about why you should have a good command of Data Structures and Algorithms? Data Structures and Algorithms help us solve real-world ...

## Top Standard Algorithms for a Coding Interview

Introduction  A coding interview is a rigorous test of your data structures and algorithms abilities. Numerous programmers and mathematicians have made our lives easier by creating algorithms that can be used directly for approaching and optimizing a particular problem. In ...

## How To Get Better At DSA For Beginners?

Introduction What sets apart an average programmer from a good programmer is the ability to write the most optimised codes. For this ability to be developed, one must have a strong foundation in the topic of Data Structures and Algorithms. ...

## Last Minutes Preparation Guide of Data Structures & Algorithms for Placements

Introduction But Coding Ninjas is here with a complete last-minute preparation guide of data structures to make your revision easier and, most importantly, efficient. Each individual preparing for the goal to be placed at a good product based company is ...