Skip to content

Conversation

@hoangble
Copy link

@hoangble hoangble commented Aug 12, 2025

When working on it, I thought that the solution can be re-written a bit cleaner so I did.

  1. Add type hints to parameters, variables, and function.
  2. Refactor so that the only loop is written only once, and the batch_size is determined from the method parameter. This change highlights the differences among the variants.

It passed the test cases.

@hoangble
Copy link
Author

@moe18 please take a look. Greatly appreciate!

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.

1 participant