-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Hacker Rank] Interview Preparation Kit: Recursion: Davis' Staircase.…
… Clean code improvements and new generalized solution.
- Loading branch information
Gonzalo Diaz
committed
Aug 7, 2024
1 parent
a0ab698
commit 9970a1b
Showing
4 changed files
with
102 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
...ration_kit/recursion_and_backtracking/ctci_recursive_staircase_generalized.testcases.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
[ | ||
{ | ||
"title": "Own sample 1", | ||
"tests": [ | ||
{ | ||
"input": 4, | ||
"limit": 3, | ||
"expected": 7 | ||
} | ||
] | ||
}, | ||
{ | ||
"title": "Own sample 2", | ||
"tests": [ | ||
{ | ||
"input": 5, | ||
"limit": 4, | ||
"expected": 15 | ||
} | ||
] | ||
}, | ||
{ | ||
"title": "Own sample 3", | ||
"tests": [ | ||
{ | ||
"input": 6, | ||
"limit": 2, | ||
"expected": 13 | ||
} | ||
] | ||
} | ||
] |