-
-
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.
Merge pull request #432 from sir-gon/feature/ctci_recursive_staircase
[REFACTOR] [Hacker Rank] Interview Preparation Kit: Recursion: Davis'…
- Loading branch information
Showing
4 changed files
with
90 additions
and
92 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
94 changes: 47 additions & 47 deletions
94
...erview_preparation_kit/recursion_and_backtracking/ctci_recursive_staircase.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 |
---|---|---|
@@ -1,49 +1,49 @@ | ||
[ | ||
{ | ||
"title": "Sample Test case 0", | ||
"tests": [ | ||
{ | ||
"input": 1, | ||
"expected": 1 | ||
}, | ||
{ | ||
"input": 3, | ||
"expected": 4 | ||
}, | ||
{ | ||
"input": 7, | ||
"expected": 44 | ||
} | ||
] | ||
}, | ||
{ | ||
"title": "Sample Test case 9", | ||
"tests": [ | ||
{ | ||
"input": 5, | ||
"expected": 13 | ||
}, | ||
{ | ||
"input": 8, | ||
"expected": 81 | ||
} | ||
] | ||
}, | ||
{ | ||
"title": "Sample Test case 10", | ||
"tests": [ | ||
{ | ||
"input": 15, | ||
"expected": 5768 | ||
}, | ||
{ | ||
"input": 20, | ||
"expected": 121415 | ||
}, | ||
{ | ||
"input": 27, | ||
"expected": 8646064 | ||
} | ||
] | ||
} | ||
{ | ||
"title": "Sample Test case 0", | ||
"tests": [ | ||
{ | ||
"n_steps": 1, | ||
"expected": 1 | ||
}, | ||
{ | ||
"n_steps": 3, | ||
"expected": 4 | ||
}, | ||
{ | ||
"n_steps": 7, | ||
"expected": 44 | ||
} | ||
] | ||
}, | ||
{ | ||
"title": "Sample Test case 9", | ||
"tests": [ | ||
{ | ||
"n_steps": 5, | ||
"expected": 13 | ||
}, | ||
{ | ||
"n_steps": 8, | ||
"expected": 81 | ||
} | ||
] | ||
}, | ||
{ | ||
"title": "Sample Test case 10", | ||
"tests": [ | ||
{ | ||
"n_steps": 15, | ||
"expected": 5768 | ||
}, | ||
{ | ||
"n_steps": 20, | ||
"expected": 121415 | ||
}, | ||
{ | ||
"n_steps": 27, | ||
"expected": 8646064 | ||
} | ||
] | ||
} | ||
] |
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