Leet Code2 [JS] 9. Palindrome Number 백준에서 본것같은 팰런드럼 확인 문제 깊은 복사 후 reverse() 로 뒤집어서 각 index 를 비교하면 된다 https://leetcode.com/problems/palindrome-number/ Palindrome Number - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com /** * @param {number} x * @return {boolean} */ var isPalindrome = function (x) { let token = String(x.. 2022. 11. 22. [JS] 1. Two Sum 리트코드 1번 문제! 쉽지만 천리길도 한걸음이랬다... https://leetcode.com/problems/two-sum/ Two Sum - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com /** * @param {number[]} nums * @param {number} target * @return {number[]} */ var twoSum = function (nums, target) { for (let i = 0; i < nums.length - 1; .. 2022. 11. 22. 이전 1 다음