Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions list_1_indexing/bigger-two/io.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,29 @@
{
"input": [[7, 2], [3, 6]],
"output": [7, 2]
},
{
"input": [[-5, 3], [-4, 6]],
"output": [-4, 6]
},
{
"input": [[0, 0], [0, 0]],
"output": [0, 0]
},
{
"input": [[-10, -20], [-5, -30]],
"output": [-10, -20]

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea checking negatives!

},
{
"input": [[9, -9], [4, -4]],
"output": [9, -9]
},
{
"input": [[2, 2], [1, 3]],
"output": [2, 2]
},
{
"input": [[-1, 1], [0, 0]],
"output": [-1, 1]
}
]
2 changes: 1 addition & 1 deletion list_1_indexing/bigger-two/meta.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"title": "Bigger Two",
"name": "biggerTwo",
"name": "bigger_two",
"difficulty": "easy",
"author": "ChatGPT",
"category": "List-1: Indexing",
Expand Down
2 changes: 1 addition & 1 deletion list_1_indexing/bigger-two/starter.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from typing import List

def biggerTwo(a: List[int], b: List[int]) -> List[int]:
def bigger_two(a: List[int], b: List[int]) -> List[int]:
# Your code here
pass
24 changes: 24 additions & 0 deletions list_1_indexing/double-23/io.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,29 @@
{
"input": [[2]],
"output": false
},
{
"input": [[0]],
"output": false
},
{
"input": [[100, 3]],

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about a number that contains 2 or 3 such as [20, 30] or [22, 300]?

@AltrosMado AltrosMado Apr 14, 2026 •

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added it!

"output": false
},
{
"input": [[-2, -2]],
"output": false
},
{
"input": [[-3, -3]],
"output": false
},
{
"input": [[20, 30]],
"output": false
},
{
"input": [[22, 33]],
"output": false
}
]
2 changes: 1 addition & 1 deletion list_1_indexing/double-23/meta.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"title": "Double 23",
"name": "double23",
"name": "double_23",
"difficulty": "easy",
"author": "ChatGPT",
"category": "List-1: Indexing",
Expand Down
2 changes: 1 addition & 1 deletion list_1_indexing/double-23/starter.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from typing import List

def double23(nums: List[int]) -> bool:
def double_23(nums: List[int]) -> bool:
# Your code here
pass
12 changes: 12 additions & 0 deletions list_1_indexing/fix-23/io.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,17 @@
{
"input": [[3, 2, 3]],
"output": [3, 2, 0]
},
{
"input": [[2, 3, 2]],
"output": [2, 0, 2]
},
{
"input": [[3, 3, 2]],
"output": [3, 3, 2]
},
{
"input": [[-2, -2, 3]],
"output": [-2, -2, 3]
}
]
2 changes: 1 addition & 1 deletion list_1_indexing/fix-23/meta.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"title": "Fixed 23",
"name": "fix23",
"name": "fix_23",
"difficulty": "easy",
"author": "ChatGPT",
"category": "List-1: Indexing",
Expand Down
2 changes: 1 addition & 1 deletion list_1_indexing/fix-23/starter.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from typing import List

def fix23(nums: List[int]) -> List[int]:
def fix_23(nums: List[int]) -> List[int]:
# Your code here
pass
4 changes: 4 additions & 0 deletions list_1_indexing/make-ends/io.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,9 @@
{
"input": [[42]],
"output": [42, 42]
},
{
"input": [[-1, -2, -3]],
"output": [-1, -3]
}
]
12 changes: 12 additions & 0 deletions list_1_indexing/make-fibonacci/io.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
[
{
"input": [0],

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good check

"output": []
},
{
"input": [1],
"output": [0]
},
{
"input": [2],
"output": [0, 1]
},
{
"input": [5],
"output": [0, 1, 1, 2, 3]
Expand Down
12 changes: 12 additions & 0 deletions list_1_indexing/max-of-three/io.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,17 @@
{
"input": [[2, 4, 1, 3, 7]],
"output": 7
},
{
"input": [[1, 9, 2]],
"output": 9
},
{
"input": [[5, 1, 5]],
"output": 5
},
{
"input": [[-10, -2, -3]],
"output": -2
}
]
2 changes: 1 addition & 1 deletion list_1_indexing/max-of-three/meta.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"title": "Max of Three",
"name": "maxOfThree",
"name": "max_of_three",
"difficulty": "easy",
"author": "ChatGPT",
"category": "List-1: Indexing",
Expand Down
2 changes: 1 addition & 1 deletion list_1_indexing/max-of-three/starter.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from typing import List

def maxOfThree(nums: List[int]) -> int:
def max_of_three(nums: List[int]) -> int:
# Your code here
pass
8 changes: 8 additions & 0 deletions list_1_indexing/plus-two/io.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,13 @@
{
"input": [[], [1, 2, 3]],
"output": [1, 2, 3]
},
{
"input": [[1, 2, 3], []],
"output": [1, 2, 3]
},
{
"input": [[], []],
"output": []
}
]
2 changes: 1 addition & 1 deletion list_1_indexing/plus-two/meta.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"title": "Plus Two",
"name": "plusTwo",
"name": "plus_two",
"difficulty": "easy",
"author": "ChatGPT",
"category": "List-1: Indexing",
Expand Down
2 changes: 1 addition & 1 deletion list_1_indexing/plus-two/starter.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from typing import List

def plusTwo(a: List[int], b: List[int]) -> List[int]:
def plus_two(a: List[int], b: List[int]) -> List[int]:
# Your code here
pass
8 changes: 8 additions & 0 deletions list_1_indexing/return-middle-two/io.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,13 @@
{
"input": [[2, 4, 6, 8, 10, 12]],
"output": [6, 8]
},
{
"input": [[9, 8, 7, 6, 5, 4, 3, 2]],
"output": [6, 5]
},
{
"input": [[-2, -1, 0, 1]],
"output": [-1, 0]
}
]

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strange that this exercise is called return-middle-two but the problem is called middleTwo

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed that too, one of them is not even used. Maybe we can make them seperate questions instead

2 changes: 1 addition & 1 deletion list_1_indexing/return-middle-two/meta.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"title": "Middle Two",
"name": "middleTwo",
"name": "middle_two",
"difficulty": "easy",
"author": "ChatGPT",
"category": "List-1: Indexing",
Expand Down
2 changes: 1 addition & 1 deletion list_1_indexing/return-middle-two/starter.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from typing import List

def middleTwo(nums: List[int]) -> List[int]:
def middle_two(nums: List[int]) -> List[int]:
# Your code here
pass
12 changes: 12 additions & 0 deletions list_1_indexing/start-one/io.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,17 @@
{
"input": [[], [1]],
"output": 1
},
{
"input": [[], []],
"output": 0
},
{
"input": [[1], [1]],
"output": 2
},
{
"input": [[9], []],
"output": 0
}
]
2 changes: 1 addition & 1 deletion list_1_indexing/start-one/meta.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"title": "Start 1",
"name": "start1",
"name": "start_1",
"difficulty": "easy",
"author": "ChatGPT",
"category": "List-1: Indexing",
Expand Down
2 changes: 1 addition & 1 deletion list_1_indexing/start-one/starter.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from typing import List

def start1(a: List[int], b: List[int]) -> int:
def start_1(a: List[int], b: List[int]) -> int:
# Your code here
pass
12 changes: 12 additions & 0 deletions list_1_indexing/sum-first-two/io.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,17 @@
{
"input": [[-1, 3]],
"output": 2
},
{
"input": [[0, 0, 5]],
"output": 0
},
{
"input": [[-5, -10, -1]],
"output": -15
},
{
"input": [[-7]],
"output": -7
}
]
8 changes: 8 additions & 0 deletions list_1_indexing/swap-ends/io.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,13 @@
{
"input": [[2, 4]],
"output": [4, 2]
},
{
"input": [[0, 1, 0]],
"output": [0, 1, 0]
},
{
"input": [[-1, -2, -3, -4, -5]],
"output": [-5, -2, -3, -4, -1]
}
]
2 changes: 1 addition & 1 deletion list_1_indexing/swap-ends/meta.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"title": "Swap Ends",
"name": "swapEnds",
"name": "swap_ends",
"difficulty": "easy",
"author": "ChatGPT",
"category": "List-1: Indexing",
Expand Down
2 changes: 1 addition & 1 deletion list_1_indexing/swap-ends/starter.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from typing import List

def swapEnds(nums: List[int]) -> List[int]:
def swap_ends(nums: List[int]) -> List[int]:
# Your code here
pass
Loading