Lonpeach Tech

게임 개발 이슈 정리

[Codewars #59] Double Char (8kyu)

[Codewars #59] Double Char (8kyu) 문제 풀이

Instructions 링크 Given a string, you have to return a string in which each character (case-sensitive) is repeated once. 1 2 3 4 5 DoubleChar("String") == "SSttrriinngg" DoubleChar("Hello World")...

[Codewars #58] Take a Number And Sum Its Digits Raised To The Consecutive Powers And ....¡Eureka!! (6kyu)

[Codewars #58] Take a Number And Sum Its Digits Raised To The Consecutive Powers And ....¡Eureka!! (6kyu) 문제 풀이

Instructions 링크 The number 89 is the first integer with more than one digit that fulfills the property partially introduced in the title of this kata. What’s the use of saying “Eureka”? Because t...

[Codewars #57] Rock Paper Scissors! (8kyu)

[Codewars #57] Rock Paper Scissors! (8kyu) 문제 풀이

Instructions 링크 Rock Paper Scissors Let’s play! You have to return which player won! In case of a draw return Draw!. Examples: 1 2 3 rps('scissors','paper') // Player 1 won! rps('scissors','rock...

[Codewars #56] Remove First and Last Character (8kyu)

[Codewars #56] Remove First and Last Character (8kyu) 문제 풀이

Instructions 링크 It’s pretty straightforward. Your goal is to create a function that removes the first and last characters of a string. You’re given one parameter, the original string. You don’t h...

[Codewars #55] Convert number to reversed array of digits (8kyu)

[Codewars #55] Convert number to reversed array of digits (8kyu) 문제 풀이

Instructions 링크 Convert number to reversed array of digits Given a random number: C#: long; C++: unsigned long; You have to return the digits of this number within an array in reverse order. Ex...

[Codewars #54] Delete occurrences of an element if it occurs more than n times (6kyu)

[Codewars #54] Delete occurrences of an element if it occurs more than n times (6kyu) 문제 풀이

Instructions 링크 Enough is enough! Alice and Bob were on a holiday. Both of them took many pictures of the places they’ve been, and now they want to show Charlie their entire collection. However, ...

[Codewars #53] List Filtering (7kyu)

[Codewars #53] List Filtering (7kyu) 문제 풀이

Instructions 링크 In this kata you will create a function that takes a list of non-negative integers and strings and returns a new list with the strings filtered out. Example 1 2 3 ListFilterer.Ge...

[Codewars #52] Ones and Zeros (7kyu)

[Codewars #52] Ones and Zeros (7kyu) 문제 풀이

Instructions 링크 Given an array of one’s and zero’s convert the equivalent binary value to an integer. Eg: [0, 0, 0, 1] is treated as 0001 which is the binary representation of 1. Examples: 1 2 ...

[Codewars #51] Consecutive strings (6kyu)

[Codewars #51] Consecutive strings (6kyu) 문제 풀이

Instructions 링크 You are given an array strarr of strings and an integer k. Your task is to return the first longest string consisting of k consecutive strings taken in the array. Example: longes...

[Codewars #50] Is this a triangle? (7kyu)

[Codewars #50] Is this a triangle? (7kyu) 문제 풀이

Instructions 링크 Implement a method that accepts 3 integer values a, b, c. The method should return true if a triangle can be built with the sides of given length and false in any other case. (In...