Open
Conversation
CheezItMan
reviewed
Nov 4, 2020
CheezItMan
left a comment
There was a problem hiding this comment.
Nice work Iris, you hit the learning goals here. Well done. Take a look at my comments and let me know what questions you have.
Comment on lines
+3
to
5
| # Time complexity: O(n), where n is size of number | ||
| # Space complexity: O(n) | ||
| def factorial(n) |
Comment on lines
+15
to
18
| # Time complexity: 0(n^2) where n is length od string | ||
| # Space complexity: 0(n^2) where n is length of string | ||
|
|
||
| def reverse(s) |
Comment on lines
+24
to
+26
| # Time complexity: o(n) where n is length of string | ||
| # Space complexity: o(n) | ||
| def reverse_inplace(s, first = 0, last = s.length - 1) |
Comment on lines
+33
to
35
| # Time complexity: O(n) where n is size of number | ||
| # Space complexity: O(n) | ||
| def bunny(n) |
Comment on lines
+41
to
+44
| # Time complexity: o(n) where n is length of string | ||
| # Space complexity: o(n) | ||
|
|
||
| def nested(s, first = 0, sub_length = s.length) |
Comment on lines
+54
to
+57
| # Time complexity: O(n) where n is length of array | ||
| # Space complexity: O(n) | ||
|
|
||
| def search(array, value, i = 0) |
Comment on lines
+65
to
+68
| # Time complexity: O(n) where n is the length of string | ||
| # Space complexity: O(n) where n is the length of string | ||
| # | ||
| def is_palindrome(s, first = 0, sub_length = s.length) |
Comment on lines
+77
to
+79
| # Time complexity: O(logn) where n is the largest number | ||
| # Space complexity: O(logn) | ||
| def digit_match(n, m, count = 0) |
| # Space complexity: ? | ||
| def is_palindrome(s) | ||
| raise NotImplementedError, "Method not implemented" | ||
| def fib(n) |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.