Ad
  • Custom User Avatar

    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.

  • Custom User Avatar

    Why is that cheating? It's a way to solve the problem.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    I have a poor understanding of math. What is the significance of the - 2 ?

  • Custom User Avatar

    It's a complete misuse of ternary operators. You should only use ternary operators when you're going to return something with it.

  • Custom User Avatar

    @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.

  • Custom User Avatar

    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.

  • Custom User Avatar

    @Chrono79

    That isn't what I'm seeing:

    After a hard quarter in the office you decide to get some rest on a vacation. So you will book a flight for you and your girlfriend and try to leave all the mess behind you.

    You will need a rental car in order for you to get around in your vacation. The manager of the car rental makes you some good offers.

    Write a code that gives out the total amount for different days(d).

  • Custom User Avatar

    @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.

  • Custom User Avatar

    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.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    fair enough, @akar-0. I'll post there from now on.

  • Custom User Avatar

    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.

  • Custom User Avatar

    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...