Skip to content

Fix list 2 - #169

Merged
thomas-kol merged 9 commits into
mainfrom
fix-list-2
Apr 27, 2026
Merged

thomas-kol merged 9 commits into
mainfrom
fix-list-2

Conversation

@thomas-kol

Copy link
Copy Markdown
Collaborator

Tasks done

  • Ensure all test suites have 10+ problems
  • Remove 12 extra problems (they weren't all problematic, but list-2 has significantly more exercises than any other category)
  • Clean up problem descriptions
  • Clean up problem difficulties

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

Looks great overall 👍

@@ -1,6 +1,6 @@
{
"title": "Check Element ID",
"name": "check_id",
"name": "check_element_id",

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.

Nice! improves clarity

@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 changes, just a few minor things I noticed

@@ -1,6 +1,6 @@
{
"title": "Check Element ID",
"name": "check_id",
"name": "check_element_id",

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 name change, but I think the directory name should match

@@ -1,6 +1,6 @@
{
"title": "Median in List",
"name": "median_num",
"name": "median_in_list",

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.

Another good name change, but the directory should match

@@ -1,7 +1,7 @@
{
"title": "Number of Increasing Sequences",
"name": "nbr_increasing_sequences",

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.

I'd suggest num_increasing_sequences and changing the dir name or just changing the function to match


1. Rearrange the list in an alphabetical order

2. Create a new list in which each student will have a roll number according to the alphabetical order of their names.

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.

Nice! This is much more readable!

**Hint:** Find a way to arrange the list in an increasing order using built-in python functions

For example:
- `assign_roll_numbers([“James”, “Eric”, “Antman”]) → [[1, “Antman”], [2, “Eric”], [3, “James”]]`

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.

Don't forget to update the example function names to match the new name

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.

Good catch!

@@ -4,5 +4,7 @@

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.

Trailing 's' diff between dir and function

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.

Capitalize Lists pls

@@ -1,6 +1,6 @@
{
"title": "Sum of Odd Numbers",
"name": "sum_of_odd",
"name": "sum_odd",

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 name change, but please match dir name

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.

and ensure the description function name matches the new name if it's in there

Comment thread list_2_iterating/upper-even/meta.json Outdated
@@ -1,7 +1,7 @@
{
"title": "Upper Even",
"name": "upper_even_i",

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.

_i?

@thomas-kol

Copy link
Copy Markdown
Collaborator Author

@guitarwhal I changed all the directory/function name discrepancies, you can look over the changes one more time if you want to

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

Looks good to me!

@thomas-kol
thomas-kol merged commit d2b622f into main Apr 27, 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.

3 participants