6 kyu

Inside Out Strings

1,045 of 1,958PG1
Description
Loading description...
Fundamentals
Strings
Arrays
View
AllIssues3QuestionsSuggestions4Show Resolved
  • Please sign in or sign up to leave a comment.
  • senior_kapitoshka Avatar

    C++ error "no matching function for call to 'insideOut'" -> should be insideOut(const std::string& x) instead of insideOut(std::string& x)

  • ahmet_popaj Avatar

    This one here was very challenging and a tricky one to solve.

  • scipper Avatar

    Hi!

    Concerning the tests in Python:

    Is the following intended by the author

    • To have a space at the beginning of the test string?
    • To have (seemingly randomly) two spaces between some words in the test strings?

    If not: Can the tests please be fixed so I can pass?

  • user1430804 Avatar

    In this kata .. i learned there's a difference between s.split() and s.split(' ') .. it might help you..

  • FArekkusu Avatar

    C++ version generates warnings.

  • svistoplyas Avatar

    'gfedcbanmlkjih cbadgfe abc a ihgfedcbarqponmlkj ihgfedcbarqponmlkj hgfedcbaiqponmlkj dcbahgfe abc jihgfedcbakutsrqponml hgfedcbaiqponmlkj hgfedcbaiqponmlkj edcbajihgf jihgfedcbatsrqponmlk abc ihgfedcbajsrqponmlk' should equal 'gfedcbanmlkjih cbadgfe abc a ihgfedcbarqponmlkj ihgfedcbarqponmlkj hgfedcbaiqponmlkj dcbahgfe abc jihgfedcbakutsrqponml hgfedcbaiqponmlkj hgfedcbaiqponmlkj edcbajihgf jihgfedcbatsrqponmlk abc ihgfedcbajsrqponmlk'

    Where is the error?

  • user1362897 Avatar

    'ihgfedcbarqponmlkj ihgfedcbarqponmlkj edcbajihgf lkjihgfedcbaxwvutsrqponm gfedcbanmlkjih badc jihgfedcbakutsrqponml ab cbafed abc edcbajihgf' should equal 'ihgfedcbarqponmlkj ihgfedcbarqponmlkj edcbajihgf lkjihgfedcbaxwvutsrqponm gfedcbanmlkjih badc jihgfedcbakutsrqponml ab cbafed abc edcbajihgf' I think the test is not good. my code did the job as the instructions say

  • hustle_sprout Avatar

    Any idea what is going on here..i printed the test input and my program output. The program gives the expected results but the test actual does not contain my program output:

    Test Results: Example_tests Log Input: man i need a taxi up to ubud output: man i ende a atix up to budu

    Expected: equal to "man i ende a atix up to budu" Actual: "man i

  • Plvtinum Avatar

    am i the only newbie here?

  • RealKenshiro Avatar

    Easy but funny one.

  • Maukan Avatar

    I really enjoyed this kata, thanks for putting this together.

  • Just4FunCoder Avatar

    This comment has been hidden.

  • ejini战神 Avatar
  • ysurilov Avatar

    In my humble opinion examples for kata must be create in more accurate and descriptive manner.

  • Jomopipi Avatar

    python: can anyone produce a shorter code than me? (in one line)

  • KDaryl Avatar

    C++ Translation

    Good kata btw!

  • udovr Avatar

    'hgfedcbaiqponmlkj kjihgfedcbavutsrqponml edcbafkjihg cbadgfe fedcbalkjihg badc ab gfedcbahonmlkji kjihgfedcbavutsrqponml kjihgfedcbavutsrqponml jihgfedcbatsrqponmlk' should equal 'hgfedcbaiqponmlkj kjihgfedcbavutsrqponml edcbafkjihg cbadgfe fedcbalkjihg badc ab gfedcbahonmlkji kjihgfedcbavutsrqponml kjihgfedcbavutsrqponml jihgfedcbatsrqponmlk'

    Are my eyes failing me or are there typo's in the test scripts for Python? everything ok except that one 'extr'a space in the expected result...? (between "gfedcbahonmlkji" and "kjihgfedcbavutsrqponml", but somehow this "post" does not show the 2nd space here).

    'dcbaeihgf edcbajihgf abc fedcbalkjihg gfedcbahonmlkji' should equal ' dcbaeihgf edcbajihgf abc fedcbalkjihg gfedcbahonmlkji'

    A space in the beginning?

  • KenKamau Avatar

    Haskell translation

    Please reivew and approve

  • KenKamau Avatar

    Ruby translation

    Please review and approve

  • KenKamau Avatar

    Python translation

    Please review and approve.