본문 바로가기

전체 글56

[CodeWars] javascript - 6kyu - Replace With Alphabet Position 문제풀이 Title Replace With Alphabet Position DescriptionWelcome. In this kata you are required to, given a string, replace every letter with its position in the alphabet. If anything in the text isn't a letter, ignore it and don't return it. "a" = 1, "b" = 2, etc. Example alphabetPosition("The sunset sets at twelve o' clock.") Should return "20 8 5 19 21 14 19 5 20 19 5 20 19 1 20 20 23 5 12.. 2020. 4. 29.
[CodeWars] javascript - 7kyu - Disemvowel Trolls 문제풀이 Title Disemvowel Trolls Description Trolls are attacking your comment section! A common way to deal with this situation is to remove all of the vowels from the trolls' comments, neutralizing the threat. Your task is to write a function that takes a string and return a new string with all vowels removed. For example, the string "This website is for losers LOL!" would become "Ths wbst s fr lsrs LL.. 2020. 4. 27.
[CodeWars] javascript - 7kyu - Largest 5 digit number in a series 문제풀이 Title Largest 5 digit number in a series Description Description: In the following 6 digit number: 283910 91 is the greatest sequence of 2 consecutive digits. In the following 10 digit number: 1234567890 67890 is the greatest sequence of 5 consecutive digits. Complete the solution so that it returns the greatest sequence of five consecutive digits found within the number given. The number will b.. 2020. 4. 24.
[CodeWars] javascript - 6kyu - IQ Test 문제풀이 Title IQ Test Description Bob is preparing to pass IQ test. The most frequent task in this test is to find out which one of the given numbers differs from the others. Bob observed that one number usually differs from the others in evenness. Help Bob — to check his answers, he needs a program that among the given numbers finds one that is different in evenness, and return a position of this numbe.. 2020. 4. 21.