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.
because it contains a space at the end.
pen and paper really helped me thnx
first of all .. i am relly happy that i am getting repl,ies
Even though you say there is "no loop", you need to understand that your sum() isn't magic - it is doing essentially the exact same thing as a loop; it is performing all of those (many) area calculations inside the () and then summing them.
If I tell you, for example, "add all the areas in the board" and "for each area in the board, add it to the total" - are these 2 fundamentally different algorithms? No! The 2nd command obviously has a "for loop" in its syntax, but the 1st command has the exact same calculations also!
If you're struggling still, forget about coding/loops/etc and go back to basics - try to solve this away from your computer, as if it were a puzzle on paper.
This comment is hidden because it contains spoiler information about the solution
with no loop also kata is timed out :(
with no loop also this kata is timed out :(
Thank you, my bad i should have seen the tests down there.
Don't include
main
function in your code. The tests call your functionis_valid_ip
and check the value it returns.Oh, I'm using C.
It's what I said, when i try to test or attempt the tests are always a "Log". Then even if the answear is 1 or 0 it's always wrong.
Please say which language you're using and give more concrete elements, it's hard to help otherwise. You should read this: https://docs.codewars.com/training/troubleshooting/
So when I try to attempt or test it appear that log is a valid option i guess, idk waht this means.
Read some of the many posts below asking the same.
why this IP is invalid 1.2.3.4
It's possible you are not allowed to put a spoiler flag afterward, included on your own message, until you did earn a certain amount of honor points, I don't remember. Don't worry, it's not big issue. Just try to remember it before publishing next time until you have this privilege :)
Loading more items...