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

Plans for more puzzles? #16

Open
kaiavintr opened this issue Dec 23, 2022 · 3 comments
Open

Plans for more puzzles? #16

kaiavintr opened this issue Dec 23, 2022 · 3 comments

Comments

@kaiavintr
Copy link

I nominate amin (or amax), nonzero, and, sort.

@srush
Copy link
Owner

srush commented Dec 23, 2022

I'm always happy for a PR if you are interested.

I think these ones are quite difficult to do though. Would be curious how you pull it off. Nonzero is a particularly nasty one because it has dynamic output size (but maybe you could do it with padding)

Maybe check out autodiff-puzzles for some sorting fun.

@kaiavintr
Copy link
Author

kaiavintr commented Dec 23, 2022

I don't want to give spoilers, but nonzero was easy once I realized the trick (and it's an important trick, so I think it would make a good addition). Sort was definitely challenging, and took many tries to get it under 80 characters though.

I am definitely going to check out your other puzzles! Thank you so much for making these!

@dantp-ai
Copy link

dantp-ai commented Feb 25, 2024

torch.gather would be a nice addition to this awesome collection of puzzles.

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

No branches or pull requests

3 participants