Lonpeach Tech

게임 개발 이슈 정리

[Codewars #32] Persistent Bugger (6kyu)

[Codewars #32] Persistent Bugger (6kyu) 문제 풀이

Instructions Write a function, persistence, that takes in a positive parameter num and returns its multiplicative persistence, which is the number of times you must multiply the digits in num unti...

[Codewars #31] Build a pile of Cubes (6kyu)

[Codewars #31] Build a pile of Cubes (6kyu) 문제 풀이

Instructions Your task is to construct a building which will be a pile of n cubes. The cube at the bottom will have a volume of n^3, the cube above will have volume of (n-1)^3 and so on until the ...

[Codewars #30] Playing with digits (6kyu)

[Codewars #30] Playing with digits (6kyu) 문제 풀이

Instructions Some numbers have funny properties. For example: 1 2 3 4 5 89 --> 8¹ + 9² = 89 * 1 695 --> 6² + 9³ + 5⁴= 1390 = 695 * 2 46288 --> 4³ + 6⁴+ 2⁵ + 8⁶ + 8⁷ = 2360688 = 46288 *...

[Codewars #29] +1 Array (6kyu)

[Codewars #29] +1 Array (6kyu) 문제 풀이

Instructions Given an array of integers of any length, return an array that has 1 added to the value represented by the array. the array can’t be empty only non-negative, single digit intege...

[Codewars #28] Write Number in Expanded Form (6kyu)

[Codewars #28] Write Number in Expanded Form (6kyu) 문제 풀이

Instructions Write Number in Expanded Form You will be given a number and you will need to return it as a string in Expanded Form. For example: 1 2 3 Kata.ExpandedForm(12); # Should return "10 + ...

[Codewars #27] Word a10n (abbreviation) (6kyu)

[Codewars #27] Word a10n (abbreviation) (6kyu) 문제 풀이

Instructions The word i18n is a common abbreviation of internationalization in the developer community, used instead of typing the whole word and trying to spell it correctly. Similarly, a11y is a...

한마디로 닷컴 - PART 1. 주어 만들기

한마디로 닷컴 - PART 1. 주어 만들기

한마디로 닷컴 내용 정리 INTRODUCTION 주어 만들기 서론 1 문장의 구조 주어 + 동사 + 목적어 + 보어 + 부사 She bought a car (보어 X) yesterday He is (목적어 X) ateacher now Tom makes her angry all the time (5형...

[Codewars #26] extract file name (6kyu)

[Codewars #26] extract file name (6kyu) 문제 풀이

Instructions You have to extract a portion of the file name as follows: Assume it will start with date represented as long number Followed by an underscore Youll have then a filename with ...

[Codewars #25] Data Reverse (6kyu)

[Codewars #25] Data Reverse (6kyu) 문제 풀이

Instructions Instructions A stream of data is received and needs to be reversed. Each segment is 8 bits long, meaning the order of these segments needs to be reversed, for example: 1 2 11111111 ...

[Codewars #24] Alphabet war - airstrike - letters massacre (6kyu)

[Codewars #24] Alphabet war - airstrike - letters massacre (6kyu) 문제 풀이

Instructions There is a war and nobody knows - the alphabet war! There are two groups of hostile letters. The tension between left side letters and right side letters was too high and the war bega...