JavaScript554 [Codewars] Return the day (8 kyu) / JavaScript https://www.codewars.com/kata/59dd3ccdded72fc78b000b25 Codewars - Achieve mastery through coding practice and developer mentorship A coding practice website 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: Complete the function which returns the weekday according to the input .. 2023. 4. 10. [백준] 11034: 캥거루 세마리2 / Node.js (JavaScript) https://www.acmicpc.net/problem/11034 문제 캥거루 세 마리가 사막에서 놀고 있다. 사막에는 수직선이 하나 있고, 캥거루는 서로 다른 한 좌표 위에 있다. 한 번 움직일 때, 바깥쪽의 두 캥거루 중 한 마리가 다른 두 캥거루 사이의 정수 좌표로 점프한다. 한 좌표 위에 있는 캥거루가 두 마리 이상일 수는 없다. 캥거루는 최대 몇 번 움직일 수 있을까? 입력 여러개의 테스트 케이스로 이루어져 있으며, 세 캥거루의 초기 위치 A, B, C가 주어진다. (0 < A < B < C < 100) 출력 각 테스트에 대해 캥거루가 최대 몇 번 움직일 수 있는지 출력한다. 예제 입력 1 2 3 5 3 5 9 예제 출력 1 1 3 코드 const input = require('fs').rea.. 2023. 4. 10. [Codewars] Is it a palindrome? (8 kyu) / JavaScript https://www.codewars.com/kata/57a1fd2ce298a731b20006a4 Codewars - Achieve mastery through coding practice and developer mentorship A coding practice website 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: Write a function that checks if a given string (case insensitive) is a .. 2023. 4. 9. [백준] 2965: 캥거루 세마리 / Node.js (JavaScript) https://www.acmicpc.net/problem/2965 2965번: 캥거루 세마리 첫째 줄에 세 캥거루의 초기 위치 A, B, C가 주어진다. (0 < A < B < C < 100) www.acmicpc.net 문제 캥거루 세 마리가 사막에서 놀고 있다. 사막에는 수직선이 하나 있고, 캥거루는 서로 다른 한 좌표 위에 있다. 한 번 움직일 때, 바깥쪽의 두 캥거루 중 한 마리가 다른 두 캥거루 사이의 정수 좌표로 점프한다. 한 좌표 위에 있는 캥거루가 두 마리 이상일 수는 없다. 캥거루는 최대 몇 번 움직일 수 있을까? 입력 첫째 줄에 세 캥거루의 초기 위치 A, B, C가 주어진다. (0 < A < B < C < 100) 출력 캥거루가 최대 몇 번 움직일 수 있는지 출력한다. 예제 입력 1 .. 2023. 4. 8. 이전 1 ··· 36 37 38 39 40 41 42 ··· 139 다음