---
title: "Discussion on \"Josephus Algorithm\" | Hashnode"
description: "Discussion on \"Josephus Algorithm\". Problem Link\nClick Here\nApproaches\nApproach 1 (Brute force)\n\nwe will create one array/vector to store the values from 1 to n, representing the sequence of each person\n\nAs given in the question we will remove one person from the array and move forward..."
url: "https://hashnode.com/posts/josephus-algorithm/668be19b432a602f0896a619"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Josephus Algorithm](https://ujjwalsharma.hashnode.dev/josephus-algorithm?utm_source=hashnode&utm_medium=feed)

Problem Link Click Here Approaches Approach 1 (Brute force) we will create one array/vector to store the values from 1 to n, representing the sequence of each person As given in the question we will remove one person from the array and move forward...

Jul 8, 2024 · 1 min read · ujjwalsharma.hashnode.dev  
Read the article

-   [#josephus-algoritm](https://hashnode.com/tag/josephus-algoritm)
-   [#dailydoseofdsa](https://hashnode.com/tag/dailydoseofdsa)
-   [#dsa](https://hashnode.com/tag/dsa)
-   [#cpp-ck4ra5k7300nlv2s1jbkdp2qh](https://hashnode.com/tag/cpp-ck4ra5k7300nlv2s1jbkdp2qh)
-   [#interview](https://hashnode.com/tag/interview)

## Written by

[Ujjwal Sharma](https://hashnode.com/@ujjwalsharma)

@ujjwalsharma · New Delhi

  
[View profile](https://hashnode.com/@ujjwalsharma)

Thriving the way to success

## Responses

Comments are turned off for this post.
