Ad
  • Custom User Avatar

    no need to check if word exists

  • Custom User Avatar

    This comment has been deleted.

  • Custom User Avatar

    bruh,
    That's not the only thing to check for.
    Read the dscription properly

  • Custom User Avatar

    windows xp error

  • Custom User Avatar

    If the goal of the function is to return a sorted array, not returning one in some cases seems counter-productive to me.

  • Custom User Avatar

    Hello,

    I think there is an issue on the output of the test result. When hitting the attempt button I have the following result of my test:

    Expected
    <[]int | len:93, cap:128>: [-96, -95, -92, -90, -90, -89, -88, -86, -82, -82, -81, -69, -69, -68, -68, -63, -62, -61, -59, -55, -52, -52, -49, -47, -43, -33, -33, -33, -32, -30, -28, -27, -26, -24, -20, -18, -15, -15, -14, -14, -12, -6, -5, -5, -2, -2, -1, 2, 2, 3, 3, 6, 7, 12, 15, 17, 18, 21, 23, 27, 29, 32, 33, 34, 35, 37, 42, 44, 46, 47, 48, 48, 50, 53, 54, 55, 59, 62, 63, 64, 67, 78, 81, 82, 82, 83, 83, 86, 88, 90, 91, 95, 98]
    to equal
    <[]int | len:93, cap:128>: [-33, -33, -33, -33, -33, -33, -33, -33, -33, -33, -33, -33, -33, -33, -33, -33, -33, -33, -33, -33, -33, -33, -33, -33, -33, -33, -14, -14, -14, -14, -14, -14, -14, -14, -14, -14, -14, -14, -14, -5, -5, -5, -5, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 55, 55, 55, 78, 78, 78, 78, 78, 78, 82, 82, 83, 83, 83, 86, 88, 90, 98, 98, 98]

    I think the result expected is achieve but the test expectations doesn't seem to be right or did I miss something?

    Kind regards
    JM

  • Custom User Avatar

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

  • Custom User Avatar

    Isn't it counter-productive to return an empty array instead of None when the array passed is None?

  • Custom User Avatar

    yes, i did

    but maybe you're unfamiliar with how the site works. you don't need to create another kata just for your peers when there are already similar katas that have been published. you can simply send them the links of katas like these for them to practice, instead of making one on your own.

  • Custom User Avatar

    Did you read the comment down bellow?

  • Custom User Avatar
    • too simple of a kata, and there are already many similar duplicates
    • function name should be descriptive, not just func
  • Custom User Avatar

    Guys, just saying, this is intended as a kata for my peers who use this platform

  • Custom User Avatar

    Ranks can't be changed ATM

  • Custom User Avatar

    I would not say that this is a 5-kyu - maybe 6 at max

  • Custom User Avatar

    The description claims that data passed into order is [float (or int), str], meaning that data passed into calculate should always have numbers at even indices, and strings at odd ones, i.e. [float, str, float, str, ... ].
    However, in the actual test cases, some inputs are [str, float, str float, ... ] the opposite of what is stated.

    i.e. the description contradicts the tests.

  • Loading more items...