-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
75365a1
commit 97f0474
Showing
3 changed files
with
28 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,15 @@ | ||
__author__ = 'dominiczippilli' | ||
from __future__ import print_function | ||
|
||
def very_inefficient(recursion, accumulator): | ||
if recursion > 0: | ||
accumulator = accumulator + ('f' * 1024 + '\n') | ||
very_inefficient(recursion - 1, accumulator) | ||
else: | ||
some_str = ' ' * (10 ** 9 / 4) | ||
return accumulator | ||
|
||
|
||
def example_handler(event, context): | ||
result = very_inefficient(512, '') | ||
return event['key1']#echo first key value |
This file was deleted.
Oops, something went wrong.