6 kyu

Texting with an old-school mobile phone

240 of 904B1ts
Description
Loading description...
Fundamentals
Strings
Algorithms
  • Please sign in or sign up to leave a comment.
  • nomennescio Avatar

    Pain... and more pain. The guy who invented this encoding should be forced to solve this kata in Brainfuck.

  • marjan Avatar

    Your compiler gives wrong result for some tests even I get correct results. I test my code on two different compilers. Can you check it out please.

  • SS-Stefanov1 Avatar

    One of the most painful 6KYU katas I've ever came across..

  • marjan Avatar

    What's a layout for a sign '*' (for multiplying).

  • Caiqu3wav Avatar

    the much im suffering in c++ solving the attemps is deadly

  • ChiefAffirmationOfficer Avatar

    It would be really nice to update the Node.js version for this kata.

  • tamistyping Avatar

    Should be 4 or 5 kyu

  • TheYojimbo Avatar

    Hello, I'm trying to submit my attempt but I get errors in the tests (while all tests passed), most of the time it says that '6165...' is expected to be '6165...' (exact same strings but I guess the error must be at the end)

    After retrying again until I get different results, I got '9#226#333#666#77#2#555#99 9#777110111' is expected to be '9#226#333*-#666#77#2#555#99 9#7771101'

    The only difference is '-' in the middle but that makes no sense to put a '-' after a '' since it's only for numbers or is there something I don't get ?

    EDIT : ok it's for '*' I'm dumb sorry

  • trashy_incel Avatar

    in C:

    • the reference solution should be static (and can be renamed to something more reasonable e.g. solution, since static makes the name obfuscation useless)
    • the initial code is confusing, returning the input violates const-correctness and generates a warning. Given the function's interface, the only sensible thing to do is to return a heap-allocated string (even though the tests do not free anything), so this should be indicated by a comment, and a better return value would be calloc(1, 1)
  • Ciprian Amza Avatar

    This kata brought me old memories... :D Nice one!

  • darkmain Avatar

    This comment has been hidden.

  • achambily Avatar

    What a number of edge cases !

  • FArekkusu Avatar

    C version generates warnings.

  • FArekkusu Avatar

    C++ version generates warnings.

  • lbvf50mobile Avatar

    Great kata. Thank you. From this kata I found that in PHP method empty return true for '"0"'.

    <?php
    if(emtpy("0")) echo "True."; # True.
    
  • ParanoidUser Avatar

    A few little typos in the description:

    • Holding is re[_]presented by a number,
    • Finish off by holding 1 as 1- and typing ! as 1111 ('1-1111' = 1!). I guess we missed a word about a white space '0' in the beginning. But since the final result in the example is correct, that could be obvious and intentional.
  • Jjason Avatar

    The real problem for this test is the cases you need to add a space. I think you need to change the level of the problem or to test the string without spaces.

  • michaelpaul523 Avatar

    A little tough compared to some of the other 6 kyu katas but definitely one of the more fun challenges I've solved.

  • arslan.zahid Avatar

    you say uppercase is a toggle and yet in your tests you do not have # after an uppercase to go back to lower case.. the test for "oen two three" is also wrong as theres a space?

  • YoneMoreno Avatar

    This comment has been hidden.

  • kirschkakao Avatar

    The test cases made my day. Thx. And, ahm, yeah I'm going to subscrube to PewDePie.

  • vinnyyo Avatar

    you can't capitalize numbers!

  • B1ts Avatar

    Slightly simplified the description, and added a bunch of translations in languages I have no clue about. Enjoy! :D

  • B1ts Avatar

    Added C++ and C translations.

    However, due to my very limited understanding in those languages, there could be some errors. I couldn't find proper testing documentation / examples for those languages =/

    Any feedback would be much appreciated :D

  • Voile Avatar

    It is not mentioned when should I press # to switch case if there are non-cased characters inbetween. Should A-z be #1** #9999, #1**#9999, #1#** 9999 or #1#**9999?

  • JohanWiltink Avatar

    This is approvable without any Python completions. This does not seem like a good idea.

    Author, when you feel it's really ready for approval, please resolve this issue.

  • B1ts Avatar

    Let me know what you think about this kata. Another idea I have is to make a harder version of this, where * would bring up an x by y grid and using arrows to navigate and select, as well as adding 3rd input type of numbers, with goal of finding optimal path for least clicks possible (if it doesn't get too complicated) and some other minor adjustments.