Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I can't guarantee that this is 100% correct solution but all the tests are green.
![Screenshot from 2024-11-03 23-12-43](https://private-user-images.githubusercontent.com/904179/382608741-139d26a8-ffbe-4042-a05e-f14a5c8b7e27.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4MzI3MzAsIm5iZiI6MTczODgzMjQzMCwicGF0aCI6Ii85MDQxNzkvMzgyNjA4NzQxLTEzOWQyNmE4LWZmYmUtNDA0Mi1hMDVlLWYxNGE1YzhiN2UyNy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwNlQwOTAwMzBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT02OWIzYzRmY2MwODYxNGQ0ODgzODc3YzFjNTFhMGM1MzZkOWU4Y2EyZjFlY2JjZmYyYmIyYmEzOThjYThhMDYwJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.MUCHwbfJZ-VkGnH9DwzUfSuebWVXxzU1POIyg3Vdg-k)
The best part is in the bench and I think the code is more readable because it fits on the screen:
I only split 2 functions - the most popular one where select is and the huge one