Ad
  • Custom User Avatar
  • Custom User Avatar

    I don't want to be rude either (luci, you solved the kata, good job). However this code is awful. An important concept in programming is "DRY", which stands for: don't repeat yourself. This video explains it adequately: https://www.youtube.com/watch?v=IGH4-ZhfVDk

  • Custom User Avatar

    I'm just baffled thinking how many hours you've spent into this without thinking on an extendible solution that works for a general n (since you can find here the 4x4 and 7x7 versions as well). I have to say I'm quite amazed, but for next problems I suggest you spend more time on planning before jumping in to coding, you could've earned 3x times more points (for what it's worth) and saved so much effort. I didn't mean to be rude, was just a bit shocked in seeing a 2600+ lines solution.

  • Custom User Avatar

    I have 5 full months of Python so I worked with what I knew .
    Anyway the ask was to resolve, not to make it fast or beautiful.
    Make more difficult kata for this grade .

  • Custom User Avatar
  • Custom User Avatar

    In my local environment with my solution I can fail this, as expected, since 90 is smaller than 90.00000000000001:
    "90.00000000000001, 1"
    but all starts to work if I add more to mantissa (this one passes):
    "90.000000000000001, 1" and also all floats up to 90.000000000000006.

    Strange float round up from Python..

    Maybe it's a good idea to put a condition so that the mantissa would not have more than 8 decimals (or how exact your location need be)

  • Custom User Avatar

    I have two solutions, one in php and javascript that were accepted and are showing up solved in my profile but when I go to the solutions for others it is showing as locked. Any suggestions? I have tried resubmitting both with not luck, it just accepts it then the solutions are still locked.

  • Custom User Avatar

    agree with Chrono79, my JS solution also works around all given tests. You should add his test case too.
    Here's another I can pass:
    ([]}{[])