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.
I attempted this in JS.
Tbh, I have no clue what op wanted because the details aren't really clear enough. I had to use the test cases to create conditions that would pass the test. When I made an attempt a whole new set of problems arose and I gave up.
Why is that cheating? It's a way to solve the problem.
This comment is hidden because it contains spoiler information about the solution
I have a poor understanding of math. What is the significance of the - 2 ?
It's a complete misuse of ternary operators. You should only use ternary operators when you're going to return something with it.
@Chrono79
I blocked some advertisements that were still showing up with adblock. When I removed those custom filters, it shows up. The elements that were blocked didn't share the some class as the description section. I'll keep watching this and see if it happens again.
That is so strange! I wonder if this is coorlated with the ad blocking or vpn usage... Now I'm curious.
EDIT: Apparently codewars quietly removes description lines if you're using an ad blocker. As soon as I turned it off and refreshed, it was there. Now I need to break out a few other browsers and test this further.
@Chrono79
That isn't what I'm seeing:
@BobtheLantern
How could you possibly think the description is fine? It doesn't explain what output is expected. It doesn't outline any discounts, which is required to return the correct information. I don't care what language you speak, there is not enough information given to complete the kata. You literally have to use the test cases to figure out what kind of information the kata is expecting and then do some math to figure out what the discounts are.
This is by far the worst kata I've seen. In the JavaScript version, the instructions aren't clear at all and not enough information is given. I had to look at the tests cases to find out how I could mathematically get the solution it was expecting. It turns out there is a $40 discount if d >= 7, $20 discount if d < 7 & $40 a day if d < 3. NONE OF THIS IS SPECIFIED IN THE DESCRIPTION.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
fair enough, @akar-0. I'll post there from now on.
This kata requires knowledge of objects and building methods. Someone who is learning the fundamentals of computer science likely hasn't reached this level of knowledge and likely isn't going to understand the given the description.
I know you don't know how many times it has been solved by people learning the fundamentals of coding - that was my point. Isn't it just as absurd for me to ask you that question as it is for you to mention how many people have solved it?
You've been very argumentative and dismissive of several people who have mentioned this.
I didn't suggest that it should be reranked. I suggested that it should be removed completely and then reposted with a more appropriate kyu.
How many times has it been solved by people learning the fundamentals of coding (i.e. still learning basic functions, loops, operators, statements, etc)?
Loading more items...