Ad
  • Default User Avatar

    alright, i'm really sorry. i spent some hour working on one problem and just couldn't get why it won't pass this one case, im glad i was close to solving it, but it definitely didn't cover all the possible test cases. i wasn't used to getting no score for even solving most of the cases but one, i understand i have the responsibility to improve it but i just got so discouraged at some point because i kept solving problems and used a lot of time for nothing. anyway, i'm really sorry for my rudeness, i will try to overcome this attitude as i'm also dealing with personal problems. thanks.

  • Default User Avatar

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

  • Default User Avatar

    if programmers are known to be lazy, just remember this guy.

  • Default User Avatar

    please add this, it's definitely a great idea. in lichess for example, you can have a competition with teams or individuals. even though, not many people would start out first, who knows. in 10 years, there will be thousands competing.

  • Default User Avatar

    hello, im not sure if you get points by solving a problem based on the number of cases you solved. i think this is very helpful, rather than not giving you points for all your hard work just because of some dumb case that was never mentioned. im obviously speaking from my experience, because ive solved many problems but could never level up my kata because i never COMPLETELY solve them. its not only annoying, its discouraging. i dont want to go back again and waste time. please fix the point system

  • Default User Avatar

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

  • Default User Avatar

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

  • Default User Avatar

    what do you mean that wasn't even easy, jesus, took me an hour

  • Default User Avatar

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

  • Default User Avatar

    instead of using enumerate, you could just also assign two values to dict to determine (count, isupper)

  • Default User Avatar

    readability!=pythonic :))

  • Default User Avatar

    of course "poor readability", bu this is still pythonic :D

  • Default User Avatar

    i was taught this similar code when first starting out, there are few corrections
    math.sqrt is faster than int(num) ** 0.5+1
    first check if num is even with num&1==0 (faster than num%2==0), it eliminates half the results
    weird cases can be split as, num<=1, num&1==0, and num==3
    range(3, sqrt, 2) increment by 2 to skip evens

  • Default User Avatar

    use of bit manipulation and sieve, great job.

  • Default User Avatar

    if someone writes module, it definitely would be fast! :DD

  • Loading more items...