Skip to content

Commit 3fcda08

Browse files
Merge pull request kunal-kushwaha#279 from VishwaGauravIn/patch-16
Update 10-recursion.md
2 parents 1d1413d + 07579f1 commit 3fcda08

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎assignments/10-recursion.md‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,11 @@
2020
- [Power of Three](https://leetcode.com/problems/power-of-three/) `leetcode`
2121
- [Power of Four](https://leetcode.com/problems/power-of-four/) `leetcode`
2222
- Write a recursive function for given n and a to determine x:
23-
n = a ^ x, (a = 2, 3, 4)
23+
```java
24+
n = a ^ x
25+
a = 2, 3, 4
2426
(2 ^ -31) <= n <= (2 ^ 31) - 1
27+
```
2528
- [Write a recursive function that returns the factorial of a number.](https://www.hackerrank.com/challenges/30-recursion/problem) `HackerRank`
2629
- [Write a recursive function to check whether an array is sorted or not.](https://www.geeksforgeeks.org/program-check-array-sorted-not-iterative-recursive) `GFG`
2730
- [Number of Steps to Reduce a Number to Zero.](https://leetcode.com/problems/number-of-steps-to-reduce-a-number-to-zero/) `leetcode`

0 commit comments

Comments
 (0)