I know it has been 8 years and you're probably very aged now compared to the time you wrote this comment. In case you're still somehow openeing codewars still I would like to ask what book did you learn from, supposing you already learnt it since it has been alot of time.
It's my first time seeing such a loop is possible, that's clean
That is absloutely smart I admire you for that. However, don't forget the big'O for huge lists of numbers!
I know it has been 8 years and you're probably very aged now compared to the time you wrote this comment. In case you're still somehow openeing codewars still I would like to ask what book did you learn from, supposing you already learnt it since it has been alot of time.
C++ programmers try to make your code readable challenge: (impossible)
😭😭😭🙏
it inverses the bool.
code representation:
bool b = true;
std::cout << b << '\n'; // true
std::cout << !b << '\n'; // false
it's called the NOT operator.
visual representation:
true ------[!]------> false
false ------[!]------> true
Mama I'm a criminal: