Ad
  • Custom User Avatar

    s = 'AAAABBBCCDAABBB'
    s = 'AAAABBBCCDAABBB1254888744'
    s = ['AA', 'A', '', '','B','B','C','c','b', '', 'None',5,5,'5']
    s = ['i', 't', 'e', 'r', 'a', 'b', 'l', 'e']
    s = ['A', 'B', 'C', 'D', 'A', 'A', 'D']
    s = ['A', 'A', None, None, None]
    s = ['5', 5]

    i run all above TCs in local env, and all producing the required result

    but when i run here, it failed with the below error
    expected undefined to deeply equal [ 'A', 'B', 'C', 'D', 'A', 'B' ]

  • Custom User Avatar

    Thanks bro, finally it works for all 21 TCs. i completely missed that part to output the sum of all cubics.

  • Custom User Avatar

    where the second zero came from ?! we extracted 1 | 3 digits numbers, then sum of the cubic of each number digit 0 737 244 125 863
    like that : 153 is such a "cubic" number: 1 ^ 3 + 5 ^ 3 + 3 ^ 3 = 153

  • Custom User Avatar

    the packets with at most 3 digits in this string 0 9026315 -827&()
    is 0 902 631 5 827 Who agree with me ?

    Cal the cubic of each digit and sum up all 0 737 244 125 863
    Then check sum only '0 Lucky'

    i beleive something wrong with test case
    please all help, it is nice kata but tooks me a while to figure it out :) .

  • Custom User Avatar

    the packets with at most 3 digits in this string 0 9026315 -827&()
    is 0 902 631 5 827 Who agree with me ?

    Cal the cubic of each digit and sum up all 0 737 244 125 863
    Then check sum only '0 Lucky'

    i beleive something wrong with test case
    please all help, it is nice kata but tooks me a while to figure it out :) .

  • Custom User Avatar

    Do u mind to check out my solution , and how it passed the TCs ?!
    Thanks

  • Custom User Avatar

    Just wanted to highlight that ,
    i really like ur katas, am learnign new things everytime
    keep rocking dude -;)

  • Custom User Avatar

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

  • Custom User Avatar
  • Custom User Avatar

    Hi Quantor, did u figure it out as am still facing the same exact issue ?

  • Custom User Avatar

    still the same issue, "should contain the clan name '[no clan specified]'"
    However i tested outside in psql srv works fine and empty clans been COALESCED with '[no clan specified]'
    Pls. Check with many thanks

  • Custom User Avatar

    Its a duplicate with already exist (Kata SQL Basics: Simple HAVING) , But it still good basic one
    keeps up good work