본문 바로가기

JavaScript554

[Codewars] Name Shuffler (8 kyu) / JavaScript https://www.codewars.com/kata/559ac78160f0be07c200005a 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 returns a string in which firstname is swapped wi.. 2023. 3. 31.
[백준] 18005: Even or Odd? / Node.js (JavaScript) https://www.acmicpc.net/problem/18005 18005번: Even or Odd? Output 2 if the sum of any n consecutive integers in the range from 1 to 1018 must be even, 1 if the sum must be odd, or 0 if the sum could be either even or odd. www.acmicpc.net 문제 Your friend has secretly picked n consecutive positive integers between 1 and 1018 and wants you to guess if their sum is even or odd. If the sum must be eve.. 2023. 3. 30.
[Codewars] Directions Reduction (5 kyu) / JavaScript https://www.codewars.com/kata/550f22f4d758534c1100025a 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: Once upon a time, on a way through the old wild mountainous west,… … a .. 2023. 3. 30.
[백준] 10610: 30 / Node.js (JavaScript) https://www.acmicpc.net/problem/10610 10610번: 30 어느 날, 미르코는 우연히 길거리에서 양수 N을 보았다. 미르코는 30이란 수를 존경하기 때문에, 그는 길거리에서 찾은 수에 포함된 숫자들을 섞어 30의 배수가 되는 가장 큰 수를 만들고 싶어한 www.acmicpc.net 문제 어느 날, 미르코는 우연히 길거리에서 양수 N을 보았다. 미르코는 30이란 수를 존경하기 때문에, 그는 길거리에서 찾은 수에 포함된 숫자들을 섞어 30의 배수가 되는 가장 큰 수를 만들고 싶어한다. 미르코를 도와 그가 만들고 싶어하는 수를 계산하는 프로그램을 작성하라. 입력 N을 입력받는다. N는 최대 105개의 숫자로 구성되어 있으며, 0으로 시작하지 않는다. 출력 미르코가 만들고 싶어하는 .. 2023. 3. 29.