Algorithm
-
[프로그래머스] 올바른 괄호Algorithm 2021. 4. 2. 13:30
programmers.co.kr/learn/courses/30/lessons/12909 코딩테스트 연습 - 올바른 괄호 괄호가 바르게 짝지어졌다는 것은 '(' 문자로 열렸으면 반드시 짝지어서 ')' 문자로 닫혀야 한다는 뜻입니다. 예를 들어 "()()" 또는 "(())()" 는 올바른 괄호입니다. ")()(" 또는 "(()(" 는 올바르지 않은 programmers.co.kr 더보기 문제 설명 괄호가 바르게 짝지어졌다는 것은 '(' 문자로 열렸으면 반드시 짝지어서 ')' 문자로 닫혀야 한다는 뜻입니다. 예를 들어 "()()" 또는 "(())()" 는 올바른 괄호입니다. ")()(" 또는 "(()(" 는 올바르지 않은 괄호입니다. '(' 또는 ')' 로만 이루어진 문자열 s가 주어졌을 때, 문자열 s가 올..
-
[Codewars] Stop gninnipS My sdroW!Algorithm 2021. 4. 1. 20:03
www.codewars.com/kata/5264d2b162488dc400000001/train/javascript Codewars: Achieve mastery through challenge Codewars is where developers achieve code mastery through challenge. Train on kata in the dojo and reach your highest potential. www.codewars.com 더보기 입력 받은 문자열 중에 5개 이상의 단어만 뒤집어서 리턴하는 문제 Write a function that takes in a string of one or more words, and returns the same string, but with all..
-
[프로그래머스] 기능개발Algorithm 2021. 3. 30. 01:32
programmers.co.kr/learn/courses/30/lessons/42586 코딩테스트 연습 - 기능개발 프로그래머스 팀에서는 기능 개선 작업을 수행 중입니다. 각 기능은 진도가 100%일 때 서비스에 반영할 수 있습니다. 또, 각 기능의 개발속도는 모두 다르기 때문에 뒤에 있는 기능이 앞에 있는 programmers.co.kr 더보기 문제 설명 프로그래머스 팀에서는 기능 개선 작업을 수행 중입니다. 각 기능은 진도가 100%일 때 서비스에 반영할 수 있습니다. 또, 각 기능의 개발속도는 모두 다르기 때문에 뒤에 있는 기능이 앞에 있는 기능보다 먼저 개발될 수 있고, 이때 뒤에 있는 기능은 앞에 있는 기능이 배포될 때 함께 배포됩니다. 먼저 배포되어야 하는 순서대로 작업의 진도가 적힌 정수 배..
-
[Codewars] Bit CountingAlgorithm 2021. 3. 29. 19:21
www.codewars.com/kata/526571aae218b8ee490006f4/train/javascript Codewars: Achieve mastery through challenge Codewars is where developers achieve code mastery through challenge. Train on kata in the dojo and reach your highest potential. www.codewars.com 더보기 자연수 n이 주어졌을 때, n을 2진수로 바꾼 뒤, 1의 개수를 구하는 문제이다. 문제 Write a function that takes an integer as input, and returns the number of bits that are eq..
-
[Codewars] RGB To Hex ConversionAlgorithm 2021. 3. 23. 18:33
www.codewars.com/kata/513e08acc600c94f01000001/train/javascript Codewars: Achieve mastery through challenge Codewars is where developers achieve code mastery through challenge. Train on kata in the dojo and reach your highest potential. www.codewars.com 더보기 The rgb function is incomplete. Complete it so that passing in RGB decimal values will result in a hexadecimal representation being returned..
-
[Codewars] DubstepAlgorithm 2021. 3. 22. 18:55
www.codewars.com/kata/551dc350bf4e526099000ae5/train/javascript Codewars: Achieve mastery through challenge Codewars is where developers achieve code mastery through challenge. Train on kata in the dojo and reach your highest potential. www.codewars.com 더보기 Polycarpus works as a DJ in the best Berland nightclub, and he often uses dubstep music in his performance. Recently, he has decided to take..