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.
im very new to wanting to code so i don´t rlly know this stuff i am lost
This comment is hidden because it contains spoiler information about the solution
translations should try to be idiomatic and use the datatypes/techniques that are usual in their language. output parameters and programming by mutation are much more common in C than in other (higher-level) languages
your code contains undefined behavior, your
while
loop will happily iterate past the end of the array and overwrite arbitrary memoryI solved this kata in C and Rust, and I have a question. Why does the function in C mutate the array in place, but in Rust it requires to create a new vector? In Rust, we can use mutable slice to change data in place as well:
fn move_zeros(arr: &mut [u8]) { todo!() }
Puede ser que en javascript esten rotos los test? lo hice de tres formas, recursiva, con un bucle y de forma matematica. ninguna satisface todos los test.
This comment is hidden because it contains spoiler information about the solution
Log
'a'
... last argument - Expected: 'b', instead got: 'a'
what's wrong? The input log is 'a', and the expected output is 'b'?
nice
This comment is hidden because it contains spoiler information about the solution
Can this be moved to Kyu 7?
Can this be moved to Kyu 7?
The timed out error occurs because the code has an infinite loop. The line n = n//2 is outside the while loop, so it never gets executed. This means the value of n never changes inside the loop, causing the loop to run indefinitely.
You did not break the loop (early exit) before halting on further incrementing the result.
Approved by someone
Loading more items...