JavaScript554 [Codewars] Array.diff (6 kyu) / JavaScript https://www.codewars.com/kata/523f5d21c841566fde000009 Codewars - Achieve mastery through coding practice and developer mentorship Coding practice for all programming levels – Join a community of over 3 million developers and improve your coding skills in over 55 programming languages! www.codewars.com DESCRIPTION: Your goal in this kata is to implement a difference function, which subtracts one.. 2022. 10. 9. [백준] 7287: 등록 / Node.js (JavaScript) https://www.acmicpc.net/problem/7287 7287번: 등록 첫 줄에 자신이 맞은 문제의 수, 둘째 줄에 아이디를 출력한다. www.acmicpc.net 문제 자신이 백준 온라인 저지(BOJ)에서 맞은 문제의 수와 아이디를 그대로 출력하는 프로그램을 작성하시오. 입력 이 문제는 입력이 없다. 출력 첫 줄에 자신이 맞은 문제의 수, 둘째 줄에 아이디를 출력한다. 예제 출력 1 123 Your_ICPC_Team_Name 풀이 console.log(103); console.log('fluss'); 말 그대로 맞춘 문제의 수와 아이디를 차례대로 출력해준다. 2022. 10. 8. [Codewars] Square Every Digit (7 kyu) / JavaScript https://www.codewars.com/kata/546e2562b03326a88e000020 Codewars - Achieve mastery through coding practice and developer mentorship Coding practice for all programming levels – Join a community of over 3 million developers and improve your coding skills in over 55 programming languages! www.codewars.com DESCRIPTION: Welcome. In this kata, you are asked to square every digit of a number and concat.. 2022. 10. 8. [백준] 2164: 카드2 / Node.js (JavaScript) https://www.acmicpc.net/problem/2164 2164번: 카드2 N장의 카드가 있다. 각각의 카드는 차례로 1부터 N까지의 번호가 붙어 있으며, 1번 카드가 제일 위에, N번 카드가 제일 아래인 상태로 순서대로 카드가 놓여 있다. 이제 다음과 같은 동작을 카드가 www.acmicpc.net 문제 N장의 카드가 있다. 각각의 카드는 차례로 1부터 N까지의 번호가 붙어 있으며, 1번 카드가 제일 위에, N번 카드가 제일 아래인 상태로 순서대로 카드가 놓여 있다. 이제 다음과 같은 동작을 카드가 한 장 남을 때까지 반복하게 된다. 우선, 제일 위에 있는 카드를 바닥에 버린다. 그 다음, 제일 위에 있는 카드를 제일 아래에 있는 카드 밑으로 옮긴다. 예를 들어 N=4인 경우를 생각해 보자... 2022. 10. 7. 이전 1 ··· 128 129 130 131 132 133 134 ··· 139 다음