Skip to content

Commit 1d71775

Browse files
Updated
1 parent be4598f commit 1d71775

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

dsa-solutions/gfg-solutions/Easy problems/Print-Pattern.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
2-
id: nth-fibonacci-number
3-
title: Nth Fibonacci Number
4-
sidebar_label: Nth Fibonacci Number
2+
id: print-pattern
3+
title: Print Pattern
4+
sidebar_label: Print-Pattern
55
tags:
66
- Recursion
77
- Algorithms
8-
description: "This tutorial covers the solution to the Nth Fibonacci Number problem from the GeeksforGeeks."
8+
description: "This tutorial covers the solution to the Print Pattern problem from the GeeksforGeeks."
99
---
1010
## Problem Description
11-
Print a sequence of numbers starting with nn, without using a loop. Replace `nn` with `n−5n - 5n−5` until `n≤0n` `\leq 0n≤0`. Then, replace n with `n+5n + 5n+5` until nn regains its initial value. Complete the function pattern(n) which takes n as input and returns a list containing the pattern.
11+
Print a sequence of numbers starting with nn, without using a loop. Replace `nn` with `n−5n - 5n−5` until `n≤0n` `\leq 0n≤0`. Then, replace n with `n+5n + 5n+5` until `nn` regains its initial value. Complete the function pattern(n) which takes n as input and returns a list containing the pattern.
1212

1313
## Examples
1414

0 commit comments

Comments
 (0)