연습장/LeetCode 문제풀이

    [LeetCode] Top Interview Problems 3. Longest Substring Without Repeating Characters - JavaScript

    [LeetCode] Top Interview Problems 3. Longest Substring Without Repeating Characters - JavaScript

    🔗 문제 링크 https://leetcode.com/problems/longest-substring-without-repeating-characters/ Longest Substring Without Repeating Characters - 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 ✏️ 풀이 var lengthOfLongestSubstring = function(s) { if (!s.length) { return 0; } const map = new Map..

    [LeetCode] Top Interview Problems 2. Add Two Numbers

    [LeetCode] Top Interview Problems 2. Add Two Numbers

    🔗 문제 링크 https://leetcode.com/problems/add-two-numbers/ Add Two Numbers - 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 ✏️ 풀이 var addTwoNumbers = function(l1, l2) { const getNumber = (listNode) => { let node = listNode; let num = ''; while (node) { num += node.val; node = node.nex..