본문 바로가기

JavaScript554

[Codewars] Your order, please (6 kyu) / JavaScript https://www.codewars.com/kata/55c45be3b2079eccff00010f/javascript 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 task is to sort a given string. Each word in the string will cont.. 2022. 10. 14.
[백준] 15552: 빠른 A+B / Node.js (JavaScript) https://www.acmicpc.net/problem/15552 15552번: 빠른 A+B 첫 줄에 테스트케이스의 개수 T가 주어진다. T는 최대 1,000,000이다. 다음 T줄에는 각각 두 정수 A와 B가 주어진다. A와 B는 1 이상, 1,000 이하이다. www.acmicpc.net 문제 본격적으로 for문 문제를 풀기 전에 주의해야 할 점이 있다. 입출력 방식이 느리면 여러 줄을 입력받거나 출력할 때 시간초과가 날 수 있다는 점이다. C++을 사용하고 있고 cin/cout을 사용하고자 한다면, cin.tie(NULL)과 sync_with_stdio(false)를 둘 다 적용해 주고, endl 대신 개행문자(\n)를 쓰자. 단, 이렇게 하면 더 이상 scanf/printf/puts/getcha.. 2022. 10. 14.
[Codewars] Returning Strings (8 kyu) / JavaScript https://www.codewars.com/kata/55a70521798b14d4750000a4/javascript 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: Make a function that will return a greeting statement that uses an inp.. 2022. 10. 14.
[Codewars] Are they the "same"? (6 kyu) / JavaScript https://www.codewars.com/kata/550498447451fbbd7600041c 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: Given two arrays a and b write a function comp(a, b) (or compSame(a, b)) that che.. 2022. 10. 13.