Ad
  • Custom User Avatar
  • Custom User Avatar

    ;-)

  • Custom User Avatar

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

  • Custom User Avatar

    all the defined test cases fail, but all my random test cases pass...

  • Custom User Avatar

    It does yes. The above solution would return false in that case, as it isn't safe.

  • Custom User Avatar

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

  • Default User Avatar

    I think the pre-code is more than clear:

    // this is your solution string (for example: "123")
    var solution = ""; 
    

    But if this kata gets more attention, I'll see if I can improve it even further.
    Thank you

  • Default User Avatar

    I assumed that you would normally rounded that way.

    I have now added a note due to multiple desire with respect to the liter / gallon - problem.

  • Custom User Avatar

    Thanks for your feedback Matt - good spot!

  • Custom User Avatar

    Not sure about the issues, maybe you encountered a partially complete test suite, but I assume now everything is working, then: thanks for your feed!

  • Custom User Avatar

    Care to say a bit more about the broken tests? Also, calling an issue because the problem does not use the data structure you will use seems a bit excessive...

  • Default User Avatar

    I have added two test cases for each sex. Thank you for the suggestion!

  • Custom User Avatar
  • Custom User Avatar

    My mistake, you got the old version of the example test cases (the full tests pass without problems); copy&paste this in your window, if you wish:

    Test.describe("Basic tests",_=>{
    s1 = 'Tadashi Takahiro Takao Takashi Takayuki Takehiko Takeo Takeshi Takeshi';
    lst1 = ['Takehiko','Takayuki','Takahiro','Takeshi','Takeshi','Takashi','Tadashi','Takeo','Takao'];
    Test.assertSimilar(lineupStudents(s1), (lst1));
    
    s2 = 'Michio Miki Mikio Minori Minoru Mitsuo Mitsuru Nao Naoki Naoko Noboru Nobu Nobuo ,Nobuyuki Nori Norio Osamu Rafu Raiden Ringo Rokuro Ronin Ryo Ryoichi Ryota Ryozo Ryuichi Ryuu Saburo Sadao Samuru Satoru Satoshi Seiichi Seiji Senichi Shichiro Shig Shigekazu Shigeo Shigeru Shima Shin Shinichi Shinji Shiro Shoichi Shoji Shuichi Shuji Shunichi Susumu Tadao Tadashi Takahiro Takao Takashi Takayuki Takehiko Takeo Takeshi Takeshi Takumi Tama Tamotsu Taro Tatsuo Tatsuya Teruo Tetsip Tetsuya Tomi Tomio Toru Toshi Toshiaki Toshihiro Toshio Toshiyuki Toyo Tsuneo Tsutomu Tsuyoshi Uyeda Yasahiro Yasuhiro Yasuo Yasushi Yemon Yogi Yoichi Yori Yoshi Yoshiaki Yoshihiro Yoshikazu Yoshimitsu Yoshinori Yoshio Yoshiro Yoshito Yoshiyuki Yuichi Yuji Yuki';
    lst2 =['Yoshimitsu', 'Yoshiyuki', 'Yoshinori', 'Yoshikazu', 'Yoshihiro',
     'Toshiyuki', 'Toshihiro', 'Shigekazu', ',Nobuyuki', 'Yoshiaki', 'Yasuhiro',
     'Yasahiro', 'Tsuyoshi', 'Toshiaki', 'Takehiko', 'Takayuki', 'Takahiro',
     'Shunichi', 'Shinichi', 'Shichiro', 'Yoshito', 'Yoshiro', 'Yasushi',
     'Tsutomu', 'Tetsuya', 'Tatsuya', 'Tamotsu', 'Takeshi', 'Takeshi', 'Takashi',
     'Tadashi', 'Shuichi', 'Shoichi', 'Shigeru', 'Senichi', 'Seiichi', 'Satoshi',
     'Ryuichi', 'Ryoichi', 'Mitsuru', 'Yuichi', 'Yoshio', 'Yoichi', 'Tsuneo',
     'Toshio', 'Tetsip', 'Tatsuo', 'Takumi', 'Susumu', 'Shinji', 'Shigeo',
     'Satoru', 'Samuru', 'Saburo', 'Rokuro', 'Raiden', 'Noboru', 'Mitsuo',
     'Minoru', 'Minori', 'Michio', 'Yoshi', 'Yemon', 'Yasuo', 'Uyeda', 'Toshi',
     'Tomio', 'Teruo', 'Takeo', 'Takao', 'Tadao', 'Shuji', 'Shoji', 'Shiro',
     'Shima', 'Seiji', 'Sadao', 'Ryozo', 'Ryota', 'Ronin', 'Ringo', 'Osamu',
     'Norio', 'Nobuo', 'Naoko', 'Naoki', 'Mikio', 'Yuki', 'Yuji', 'Yori', 'Yogi',
     'Toyo', 'Toru', 'Tomi', 'Taro', 'Tama', 'Shin', 'Shig', 'Ryuu', 'Rafu',
     'Nori', 'Nobu', 'Miki', 'Ryo', 'Nao'];
    Test.assertSimilar(lineupStudents(s2), (lst2));
    })
    
  • Custom User Avatar

    one char can not use twice, if chars="goatcode", when you got a dog, chars left "atcoe".

  • Loading more items...