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.
In Python is very simple
Example
age = int(19)
txt = str("Hello my name is Beno, i'am {} years old")
print(txt.format(age))
Added const for the char* r
That's just a formatting preference. What's I think is a bad formatting preference is putting anything after a scope-closing } on the same line.
Just a minor Feedback:
if you're using the curlybrackets, then put them in the next row so the code is simpler to read.
petty mid
char fanis(char r, int k) {
for (; *r; *r++)
*r = k + *r;
return r;
}
This is brainfuck not python for babies
Been a very long time since I touched this, but it's string comparison to see if one string can be transformed into a second string only by adding, removing or swapping a single character.
With that said, we were apparently code golfing and optimizing performance just for fun, you should absolutely not take this code as a good example of well-written Ruby.
Less lines != good code
What is the actual purpose of "One Away"?.
To compare a pair of ranges, strings or arrays?.
Would appreciate some comments.
Many regards,
A very green Ruby rookie... :)
Maybe change the function nameto follow best practise, like
equal_sum?
.:o i can do that???
how about:
unwords . fmap ((l:ls) -> toUpper l : ls) . words
fails for n = 99999999999999999
I think your previous solution was more efficient, this one keesp repeatedly searching the lowerbound, the prior compared as interleaving
Loading more items...