KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I need a very fast way to determine if an array consits only of integers with the value of 9 . Here is my current solution: input = [9,9,9,9,9,9,9,9,9,9,9,9] input.uniq == [9] Can you do it faster?
Tags (comma-separated)
Save Edits
Cancel