Skip to content

Add and Fix testcases for all list-1 Problems - #163

Merged
AltrosMado merged 5 commits into
mainfrom
list-1-fixes
Apr 15, 2026
Merged

AltrosMado merged 5 commits into
mainfrom
list-1-fixes

Conversation

@AltrosMado

Copy link
Copy Markdown
Collaborator

I looked through all the testcases and tried to add missing edgecases/more tests

},
{
"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!

"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!

@@ -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

"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

@guitarwhal guitarwhal left a comment

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 new tests, left a couple comments either noting something good or strange :)

@AltrosMado
AltrosMado merged commit 86fe17e into main Apr 15, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants