Skip to content

UofT-DSI | Algorithms and Data Structures - Assignment 1#1

Open
alanmj950 wants to merge 1 commit intomainfrom
assignment-1
Open

UofT-DSI | Algorithms and Data Structures - Assignment 1#1
alanmj950 wants to merge 1 commit intomainfrom
assignment-1

Conversation

@alanmj950
Copy link
Owner

What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)

Added solution for “Move All Zeros to End” in assignment_1.ipynb.

What did you learn from the changes you have made?

Learned how to use the two-pointer technique to solve array problems efficiently.

Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?

Yes, creating a new list of non-zeros and appending zeros at the end.

Were there any challenges? If so, what issue(s) did you face? How did you overcome it?

Ensuring non-zero order stayed the same; solved it through testing.

How were these changes tested?

Tested with given and custom examples to verify outputs.

A reference to a related issue in your repository (if applicable)

N/A

Checklist

  • I can confirm that my changes are working as intended

Copy link

@DwardEE DwardEE left a comment

Choose a reason for hiding this comment

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

Great work!

Everything looks good. No changes are needed.

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

Comments