Ad
  • Default User Avatar

    How do you view the input of test cases to help fix issues?

  • Default User Avatar

    I noticed that the top rated solution fails to return just one value if both values are the same, as requested in the details.

    It's a simple fix but sadly the tests did not test for this specific condition.

  • Default User Avatar

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

  • Default User Avatar

    If you look at the profiles of others here, you can view their solutions to different problems.

    Just work through each solution one line at a time, working out what the code is doing and testing it out in your own ide using print statements to return values at each stage. This will give you a better idea of how each person tackles a problem differently, and you'll soon learn new techniques you can build on as well as see poorly written code you should avoid using yourself. Always compare these techniques with the recommended solution to each problem too.

    In some of my solutions, I put comments next to each line as to what those lines do. I really should do it more!

  • Default User Avatar

    What you learnt in the past doesn't necessarily provide a solution.
    They merely act as the building blocks to solve new problems.

    It's about being creative with the skills you have and thinking logically about the steps you need to take at each stage of the process.