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.
This simplified the Kata for me thank you.
Why don't you recommend using it in this case? Thank You.
The description says " some possible expressions", it does not mean to list all possible expressions. Finding out all possibilities is a task for users.
With the numbers 1, 2, and 3, here are some possible expressions:
Here you need to add the case of (a + b + c) -_-
Fixed by @Amin Javaid
Approved
thank you it worked for me!
fixed
fixed
I fixed the bug in the C version, your code would pass the tests now :)
somebody raised it there with more details
Formally yes: any sequence of steps to solve a problem is an algorithm. But in practice, an "algorithmic problem" usually means a problem where the focus is on finding a more efficient method than trivial brute force or a simple loop. Otherwise, the term would lose its meaning
"algorithm" literally means "a method to solve something". Going through all possible combination is a valid way to solve this problem, so it is a valid algorithm :)
Don't try to find an algorithm for this task, even though it's labeled "algorithms." This assignment is one of the most confusing. I recently started programming, and seeing the label, I thought I needed to use an algorithm. In reality, algorithms here would only slow down the code, and in the end, you'll still have to go through all combinations.
Loading more items...