본문 바로가기

JavaScript554

[Codewars] Path Finder #1: can you reach the exit? (4 kyu) / JavaScript https://www.codewars.com/kata/5765870e190b1472ec0022a2 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: Task You are at position [0, 0] in maze NxN and you can only move in on.. 2022. 11. 24.
[백준] 23235: The Fastest Sorting Algorithm In The World / Node.js (JavaScript) https://www.acmicpc.net/problem/23235 23235번: The Fastest Sorting Algorithm In The World It is common to compare sorting algorithms based on their asymptotic speeds. Some slower algorithms like selection sort take O(N2) time to sort N items, while comparison-based sorts like merge sort can go no faster than O(N log(N)) time, under reasonable a www.acmicpc.net 문제 It is common to compare sorting a.. 2022. 11. 23.
[Codewars] Shortest Word (7 kyu) / JavaScript https://www.codewars.com/kata/57cebe1dc6fdc20c57000ac9 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: Simple, given a string of words, return the length of the shortest word.. 2022. 11. 23.
[백준] 9086: 문자열 / Node.js (JavaScript) https://www.acmicpc.net/problem/9086 9086번: 문자열 입력의 첫 줄에는 테스트 케이스의 개수 T(1 ≤ T ≤ 10)가 주어진다. 각 테스트 케이스는 한 줄에 하나의 문자열이 주어진다. 문자열은 알파벳 A~Z 대문자로 이루어지며 알파벳 사이에 공백은 없으 www.acmicpc.net 문제 문자열을 입력으로 주면 문자열의 첫 글자와 마지막 글자를 출력하는 프로그램을 작성하시오. 입력 입력의 첫 줄에는 테스트 케이스의 개수 T(1 ≤ T ≤ 10)가 주어진다. 각 테스트 케이스는 한 줄에 하나의 문자열이 주어진다. 문자열은 알파벳 A~Z 대문자로 이루어지며 알파벳 사이에 공백은 없으며 문자열의 길이는 1000보다 작다. 출력 각 테스트 케이스에 대해서 주어진 문자열의 첫 글자.. 2022. 11. 22.