Ad
  • Custom User Avatar

    Ok, I see...so when you change a letter it counts as a single operation...I was counting it as 2(removing then adding).

  • Custom User Avatar

    Think mathethematics...what you are doing is wholly unneccassary...

  • Custom User Avatar

    Forget looking at letters, and think mathematics. There are equations that can be used that will be exceptionally fast...

  • Custom User Avatar

    Im a little confused.

    In the example given with the different languages, you say "heaven" should return "java", but from the way I'm seeing it, it should return "python".

    "Java" compared to "Heaven" has no letters in the correct place, even though it Contains 2 letters from heaven(a and v) meaning you have to move/replace all 4 letters, then add 2 to equal the length of heaven, which = 6 total.

    "Python" compared to "Heaven" has the same number of letters and the "n" are both in the same place. Meaning only 5 letters need to be replaced in total.

    What am I missing here?

    EDIT: Even when I used a count to keep track of letters from "heaven" that were simply "in" "java" and "python" and then subtracted them what I had came up with, python STILL is the answer because both java and python both contain 2 letters that are in heaven.

    Either the explanation of what you are wanting us to actually do is not clear enough or the test is simply wrong.

  • Custom User Avatar

    Where is this Morse Code Dictionary that is preloaded?

  • Custom User Avatar

    Getting a very stange incorrect on the first test saying:

    "'Ok, Ooooo?Okk, Okkkk?Ok, Ooooo?Okk, Okkkk?Okk, Okkkk?Ook, Ooook!' should equal 'H'"

    That long string most certainly does not equal the letter 'H' in the example, nor in the test, which has ! instead of ? as given in the example

  • Custom User Avatar

    I've had a few completed Kata's that earned me no honor...

    Is it not ironic that a coding challenge site has an issue with their coding? :P

  • Custom User Avatar

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

  • Custom User Avatar

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

  • Custom User Avatar

    Thinking something is not right with these tests...

    specifically tests 3,6 and 8...

    I encode and decode them correctly, I have checked the Console.WriteLine output in both the message and the list and compared it to the shift being used in cases 3 and 6, and in case 8 it tells me it expects a string with Length 113 but mine is 90 even though my Console.Writeine output directly below the input string is exactly the same length...

    In case 3 and 6 is tells me it the output is different in list at index [4] but it is using the wrong shift on that index it appears...

    Can someone check my code and verify I am not going crazy??

  • Custom User Avatar

    use a recursive function---a function that calls itself as the return value.

  • Custom User Avatar

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

  • Custom User Avatar

    My answer is correct but it terminates because it takes too long to complete...unsure how to speed it up when its only 2 lines of code

    Probably should lessen the numbers being used because it causing an issue with the testing.

  • Custom User Avatar

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

  • Custom User Avatar

    It's not worded as clear as what is should be, but here is what you need to look at. It's not enough for him to have enough MONEY to give back, he must have the proper change. For instance if it is {25,50,100,50} he has enough money to give change back, but he doesn't have the proper change---you can't give someone $25 back from a $100 bill.

    Once I made that correction, it passed on the first test through.