Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Two-Sum Benchmark #277

Merged
merged 2 commits into from
Aug 31, 2023
Merged

Add Two-Sum Benchmark #277

merged 2 commits into from
Aug 31, 2023

Conversation

Enochen
Copy link
Contributor

@Enochen Enochen commented Aug 31, 2023

Add a benchmark with a naive implementation of 1. Two Sum with a hardcoded numbers list.
(I wasn't sure how or if it was possible to accept an array as input)

@sampsyo
Copy link
Owner

sampsyo commented Aug 31, 2023

Very nice! It would be cool if the "haystack" array could be a parameter as well, but as you of course discovered already, the interpreter doesn't have a way to parse those on the command line. Maybe we should add that someday...

@sampsyo sampsyo merged commit 111d864 into sampsyo:main Aug 31, 2023
5 checks 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