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.
Uses exact equality on floats.
This kata is a subject to deduplication process here: https://github.com/codewars/content-issues/issues/203.
Please join the discussion to help us identify duplicate kata and retire them.
C Translation (author inactive).
All border cases should be tested, 2, 4, 8 and 10 litres in fixed tests in all languages.
Yet another caesar cipher kata
This comment is hidden because it contains spoiler information about the solution
The random testing doesn't include test(s) for liter values below 2 :)
Please fix it for C++ (warning from test code, not mine):
main.cpp:53:30: warning: comparison of integers of different signs: 'int' and 'std::__cxx11::basic_string<char, std::char_traits, std::allocator >::size_type' (aka 'unsigned long') [-Wsign-compare]
for(int i = 0; i < str.size(); i++)
~ ^ ~~~~~~~~~~
1 warning generated.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
FYI, both the description text and the initial solution parameters (Java) have inconsistent spellings of
litre
versusliter
.