Ad
  • Custom User Avatar

    Thank you for your contribution! It's been taken into account

  • Custom User Avatar

    (JS) Random tests should be wrapped inside a describe block, like this:

    describe("Random tests", function(){
      // Reference solution here
      function reference(money, days, cost) {
        // ...
      }
    
      it("Small random tests", function(){
        // ...
      });
    
      it("Medium random tests", function(){
        // ...
      });
    
      it("Extra large random tests", function(){
        // ...
      });
    });
    
  • Custom User Avatar

    Thanks for your remark! The word consecutive has now been highlighted in the task description

  • Custom User Avatar

    You probably missed the part in description that says the days have to be consecutive :p

  • Custom User Avatar

    I'm confused. If we are supposed to return the minimum amount of money needed for the vacation, how do you explain this fixed test:

    • money: 10
    • days: 2
    • cost: [3, 7, 6]
    • expected: "money: 10" - Isn't the minimum "money: 9" ???
  • Custom User Avatar

    This is a difficult question. To not give up, maybe :)

  • Default User Avatar

    Hello RileyHunter
    Hello again HerrWert...
    I agree with you both! --> I've upvoted you both to show my support of your comments.

  • Default User Avatar

    Hello YurDavid,

    Premise: Programming is fundamentally built on mathematics.

    If you accept that premise, then all problems on Codewars are essentially playing with mathematics of one sort or another. Programming and mathematics are deeply intertwined; algorithms, data structures, and computational theory are all grounded in mathematical concepts. Even seemingly simple coding challenges often rely on mathematical logic and principles.

    What are your thoughts?

  • Default User Avatar

    Hello iNikAnn,

    Premise: Programming is fundamentally built on mathematics.

    If you accept that premise, then all problems on Codewars are essentially playing with mathematics of one sort or another. Programming and mathematics are deeply intertwined; algorithms, data structures, and computational theory are all grounded in mathematical concepts. Even seemingly simple coding challenges often rely on mathematical logic and principles.

    What are your thoughts?

  • Default User Avatar

    Hello Yuskus,
    I feel your frustration... But did you learn something from it?

  • Custom User Avatar
  • Custom User Avatar

    it was about 2 weeks... this kata annoyed me.. but I won. it's hard, strange but possible. random tests is strange... I don't like this kata

  • Default User Avatar

    Thanks for the comment - much appreciated!

  • Custom User Avatar

    Thanks for a fantastic challenge! I learned a few things along the way.

  • Custom User Avatar

    I learned quite a few ways for manipulating execution time from this kata and it's solutions, so I disagree with you here.

  • Loading more items...