• fixed

  • Approved

    • Node 12 should be enabled

    • assert.strictEqual should be used

  • Ruby 3.0 should be enabled, see this to learn how to do it

    Please organize the structure of test fixture as following (although it has been mentioned in the attached link, I'm repeated here again)

    describe "<This message should describe the categories of test groups inside this block>" do
      it "<A short message describing this test group>" do
        expect(...).to eq(...) #Assertions
        #Or Test.assert_equals(user_response, reference_response)
      end
    end
    
  • Please use new python test framework.

  • A minor typo in the description: we will not get number that can be divide[D] by 5

  • Based on above it must resolve as 2, 6, 6.

    Why? It's wrong. For [6, 6, 2] and k=10 it should be [6, 6, 2].

  • all elements that are less than k are placed before elements that are not less than k;

    if k is 10 all elements are less than k there

    all elements that are less than k remain in the same order with respect to each other;

    6, 6, 2 is the right answer.

  • What would be the output here:

    Value of k is 10 and list provided is :6, 6, 2

    Based on above it must resolve as 2, 6, 6. But mine result is 6, 6, 2 and test is pass for this random test. Please can you help.

  • k can or can't be part of the list, for those values the resulting list should be [5, 4, 10]

  • Thanks for the information. But what about below case :

    Value of k is 8 and list provided is :10, 5, 4

    output must be 10, 5, 4 as 8 is not part of list. But result is saying it must be 5, 10, 4

  • For test case [2, 9, 5, 5, 2] and k=5:

    • Values less than k are 2, 2
    • Values not less than k are 9, 5, 5

    If you take values less than k first, and then values not less than k, you end up with 2 2 9 5 5, as is expected value. Your interpretation leading to 2 2 5 9 5 seems to be incorrect for me.

  • Believe there is some issue either in requirement or random test.
    k is 4. Elements are 9 7 7 9 4 4 6 6 4 3

    Based on req output must be 3 4 9 7 7 9 4 6 6 4, but result that random test is returning is somewhat weird.

    here is another example for same - k is 5, elements are 2 9 5 5 2
    based on requirement output should look like 2 2 5 9 5
    but getting this as result
    expected:<[2, 2, [9, 5], 5]> but was:<[2, 2, [5, 9], 5]>.

    Please correct it and add few more test cases for clarity

  • Loading more items...