Skip to content

Commit 2245fb7

Browse files
committed
comment removed
1 parent fa84632 commit 2245fb7

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

dsa-solutions/gfg-solutions/0022-minimum-number-of-jumps.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
id: minimum number of jumps
2+
id: minimum-number-of-jumps
33
title: Minimum number of jumps
44
sidebar_label: 0022 Minimum number of jumps
55
tags:
@@ -40,7 +40,6 @@ The brute force approach involves recursively checking all possible jumps from e
4040
The implementation recursively checks all possible jumps from each element, updating the minimum number of jumps needed.
4141

4242
```cpp
43-
// C++ Implementation
4443
class Solution {
4544
public:
4645
int minimumJumps(int arr[], int n) {
@@ -71,7 +70,6 @@ In this approach, we use dynamic programming to store the minimum number of jump
7170
The code initializes an array to store the minimum jumps required and iterates through the array to calculate the minimum jumps.
7271

7372
```cpp
74-
// C++ Implementation
7573
class Solution {
7674
public:
7775
int minimumJumps(int arr[], int n) {
@@ -97,7 +95,6 @@ public:
9795
#### Python Implementation
9896

9997
```python
100-
# Python Implementation
10198
class Solution:
10299
def minJumps(self, arr, n):
103100
if len(arr) <= 1 :
@@ -146,7 +143,6 @@ class Solution:
146143
#### Java Implementation
147144

148145
```java
149-
// Java Implementation
150146
class Solution {
151147
static int minJumps(int arr[])
152148
{
@@ -209,7 +205,6 @@ This approach involves maintaining the maximum reachable index from the current
209205
The implementation traverses the array, updating the maximum reachable index and the number of steps at each iteration.
210206

211207
```cpp
212-
// C++ Implementation
213208
class Solution {
214209
public:
215210
int minJumps(int arr[], int n) {
@@ -242,7 +237,6 @@ public:
242237
#### Python Implementation
243238

244239
```python
245-
# Python Implementation
246240
class Solution:
247241
def minJumps(self, arr, n):
248242
if len(arr) <= 1 :
@@ -291,7 +285,6 @@ class Solution:
291285
#### Java Implementation
292286

293287
```java
294-
// Java Implementation
295288
class Solution {
296289
static int minJumps(int arr[])
297290
{

0 commit comments

Comments
 (0)