Ad
  • Default User Avatar

    Good!

  • Default User Avatar

    g964 // I solved this problem. It was my mistake. I should've considered "No input" case.

  • Default User Avatar

    In description : return the first longest string consisting ......
    It need to begin at the first longest string.

  • Default User Avatar

    std::string s = "who hit retaining The That a we taken"; // Passed
    std::string sol = "who RETAINING hit THAT a THE we TAKEN";
    dotest(s, sol);
    s = "on I came up were so grandmothers"; //Non-Passed
    sol = "i CAME on WERE up GRANDMOTHERS so";
    dotest(s, sol);

  • Default User Avatar

    In the 2nd test if you don't see anything, which string is it?

  • Default User Avatar

    Thanks for your reply
    I tried

    the first line : cout<<"Input : "<<strng<<endl;
    the last line : cout<<"Result :" <<result<<endl;

    And all I can see in the log is

    Input : who hit retating... (which is right input value)
    Result : who RETATING hit... (which is also right answer)
    Input : (No input value?)
    "Caught unknown exception"

    So I mean taka seems having trouble bringing Input value after the first fixed test.

  • Default User Avatar

    When you "SUBMIT" there are many more fixed tests (often with edge cases).

  • Default User Avatar

    (In the Sample test)

    Fixed test : Pass

    (but in the final test)

    Fixed test : Non-pass
    Random test : Pass

    what is possibly wrong with my code? I thought the fixed tests are always same.

  • Custom User Avatar

    Just wanted to say thank you, the description for this kata is garbage and reading your description finally made it click for me.

  • Default User Avatar

    Hi how did you see the test cases?

  • Default User Avatar

    I understood the description but this is so hard!!
    I thought once I found the longest ones (as many as int k) it would be so much simpler
    but actually It's not. I have to consider same strings, same length,and given order of them at the same time.
    I almost got the correct answer by using 7 while loop but I need more now. (I know it's my fault)

  • Default User Avatar

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

  • Custom User Avatar

    Writing down the equation was so far beyond helpful. Luckily, high school factoring kicked in for me and I was able to solve for 'b' which made life so easy!

  • Default User Avatar

    Yes there are many more tests. Post a question not an issue! Issues are for errors in the kata.

  • Default User Avatar

    It seems my solution passed the sample test.
    But when I click 'attempt' , the sample test in the final test is not passed.
    Is there any difference between these two sample tests?

  • Loading more items...