2015-07-03 11:01:32 +08:00
{
" cells " : [
{
" cell_type " : " markdown " ,
" metadata " : { } ,
" source " : [
2016-07-31 20:11:18 +08:00
" This notebook was prepared by [Author](https://github.com/). Source and license info is on [GitHub](https://github.com/donnemartin/interactive-coding-challenges). "
2015-07-03 11:01:32 +08:00
]
} ,
{
" cell_type " : " markdown " ,
" metadata " : { } ,
" source " : [
" # Challenge Notebook "
]
} ,
{
" cell_type " : " markdown " ,
" metadata " : { } ,
" source " : [
" ## Problem: Implement foo(val), which returns val \n " ,
" \n " ,
" * [Constraints](#Constraints) \n " ,
" * [Test Cases](#Test-Cases) \n " ,
" * [Algorithm](#Algorithm) \n " ,
" * [Code](#Code) \n " ,
" * [Unit Test](#Unit-Test) \n " ,
" * [Solution Notebook](#Solution-Notebook) "
]
} ,
{
" cell_type " : " markdown " ,
" metadata " : { } ,
" source " : [
" ## Constraints \n " ,
" \n " ,
2015-08-01 06:48:53 +08:00
" * Does foo do anything else? \n " ,
" * No "
2015-07-03 11:01:32 +08:00
]
} ,
{
" cell_type " : " markdown " ,
" metadata " : { } ,
" source " : [
" ## Test Cases \n " ,
" \n " ,
" * foo(val) -> val "
]
} ,
{
" cell_type " : " markdown " ,
" metadata " : { } ,
" source " : [
" ## Algorithm \n " ,
" \n " ,
2015-08-01 21:39:57 +08:00
" Refer to the [Solution Notebook](). If you are stuck and need a hint, the solution notebook ' s algorithm discussion might be a good place to start. "
2015-07-03 11:01:32 +08:00
]
} ,
{
" cell_type " : " markdown " ,
" metadata " : { } ,
" source " : [
" ## Code "
]
} ,
{
" cell_type " : " code " ,
" execution_count " : null ,
2020-07-17 09:37:21 +08:00
" metadata " : { } ,
2015-07-03 11:01:32 +08:00
" outputs " : [ ] ,
" source " : [
" def foo(val): \n " ,
" # TODO: Implement me \n " ,
" pass "
]
} ,
{
" cell_type " : " markdown " ,
" metadata " : { } ,
" source " : [
" ## Unit Test "
]
} ,
{
" cell_type " : " markdown " ,
" metadata " : { } ,
" source " : [
" **The following unit test is expected to fail until you solve the challenge.** "
]
} ,
{
" cell_type " : " code " ,
" execution_count " : null ,
2020-07-17 09:37:21 +08:00
" metadata " : { } ,
2015-07-03 11:01:32 +08:00
" outputs " : [ ] ,
" source " : [
" %lo ad test_foo.py "
]
} ,
{
" cell_type " : " markdown " ,
" metadata " : { } ,
" source " : [
" ## Solution Notebook \n " ,
" \n " ,
2015-08-01 21:39:57 +08:00
" Review the [Solution Notebook]() for a discussion on algorithms and code solutions. "
2015-07-03 11:01:32 +08:00
]
}
] ,
" metadata " : {
" kernelspec " : {
2020-07-17 09:37:21 +08:00
" display_name " : " Python 3 " ,
2015-07-03 11:01:32 +08:00
" language " : " python " ,
2020-07-17 09:37:21 +08:00
" name " : " python3 "
2015-07-03 11:01:32 +08:00
} ,
" language_info " : {
" codemirror_mode " : {
" name " : " ipython " ,
2020-07-17 09:37:21 +08:00
" version " : 3
2015-07-03 11:01:32 +08:00
} ,
" file_extension " : " .py " ,
" mimetype " : " text/x-python " ,
" name " : " python " ,
" nbconvert_exporter " : " python " ,
2020-07-17 09:37:21 +08:00
" pygments_lexer " : " ipython3 " ,
" version " : " 3.7.2 "
2015-07-03 11:01:32 +08:00
}
} ,
" nbformat " : 4 ,
2020-07-17 09:37:21 +08:00
" nbformat_minor " : 1
2015-07-03 11:01:32 +08:00
}