Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
:O I didn't know you could do that
I am not sure where Codewars rules say thay you need to be as fast as possible :)
i mean, codewars is sbout doing it as fast as possible, even if its extremely ugly
can't be!
———
"For I was conscious that I knew practically nothing..." | Plato
since no constraints for the arguments are given in the statement,
add_binary(!0u64, !0u64)
would cause overflowthe only thing I know is that I know nothing.
the kata needs clarification but I think if it meant to return "bye" and not "e" then it should also return "hi" if "hi" is the only argument. otherwise it's inconsistent. what if the arguments were
("hello", [1, "world", [2, 3]])
? Should it return[1, "world", [2, 3]]
,[2, 3]
, or3
?count_ones/popcount is a (somewhat) common CPU operation
Yet you're doing the same thing.
That is cheating!
Is learning how to write a slow, inefficient code in your favorite language a good lesson? According to some, yes.
Is learning that a good solution to a problem is often generic, and can be achieved in any language, a valuable lesson? According to some, no.
Is it true that the most valuable skill in programming is writing fors, ifs, loops, and functions? According to many, yes.
Is it true that finding a way to solve a problem with a computer in a way which is quick and cheap is an important aspect of programming? Apparently, not.
You are saying you are here to learn Rust. Are you here to learn how to write good solutions to problems with Rust, or are you here to learn how to write poor solutions to problems with Rust? Ability to write ifs in loops in ifs in loops and make your computer choke on a simplest problem is not a really valuable skill, is it. Ability to find good solutions to domain problems, on the other hand, is something what marks a skilled programmer.
Please use spoiler flag next time.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
it pains me to see this after submitting my code
Loading more items...