전체 글 (501) 썸네일형 리스트형 모달 / 스켈레톤 UI 디자인 리팩토링 1. 모달 Height 반응형 적용 및 디자인 통일 프로젝트 내 모달 디자인을 통일하고, vw/vh를 사용하도록 수정하였다. 2. 스켈레톤 UI 디자인 수정 기본 컴포넌트와 최대한 비슷한 느낌이 들도록 수정하였다. 살짝 맞지 않던 간격도 바꿔주었다. 훨씬 보기 좋아졌다. 반응형도 적용되도록 vw,vh를 사용하였다. 수정 전) 수정 후) 리팩토링은 계속 된다!! [리트코드] 131. Palindrome Partitioning - js 1. 문제 https://leetcode.com/problems/palindrome-partitioning/ { if(!left.length && arr.length) answer.push(arr); for(let i=1;i { let back = str.split("").reverse().join(""); if(str === back) return true; else false; } [리트코드] 1. Two Sum - js 1. 문제 https://leetcode.com/problems/two-sum/ Two Sum - LeetCode Can you solve this real interview question? Two Sum - Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. You may assume that each input would have exactly one solution, and you may not leetcode.com 2. 코드 /** * @param {number[]} nums * @param {number} target * @re.. [리트코드] 739. Daily Temperatures - js 1. 문제 https://leetcode.com/problems/daily-temperatures/description/ Daily Temperatures - LeetCode Can you solve this real interview question? Daily Temperatures - Given an array of integers temperatures represents the daily temperatures, return an array answer such that answer[i] is the number of days you have to wait after the ith day to get a warmer leetcode.com 2. 코드 /** * @param {number[]} t.. [리트코드] 345. Reverse Vowels of a String - js 1. 문제 https://leetcode.com/problems/reverse-vowels-of-a-string/ Reverse Vowels of a String - LeetCode Can you solve this real interview question? Reverse Vowels of a String - Given a string s, reverse only all the vowels in the string and return it. The vowels are 'a', 'e', 'i', 'o', and 'u', and they can appear in both lower and upper cases, more than onc leetcode.com 2. 코드 이 문제는 투 포인터를 사용해야하는 .. [리트코드] 215. Kth Largest Element in an Array 1. 문제 https://leetcode.com/problems/kth-largest-element-in-an-array/ 2. 코드 /** * @param {number[]} nums * @param {number} k * @return {number} */ var findKthLargest = function(nums, k) { let sortedNums = nums.sort((a,b) => b-a); return sortedNums[k-1]; }; [리트코드] 49. Group Anagrams - js 1. 문제 https://leetcode.com/problems/group-anagrams/description/ Group Anagrams - LeetCode Can you solve this real interview question? Group Anagrams - Given an array of strings strs, group the anagrams together. You can return the answer in any order. An Anagram is a word or phrase formed by rearranging the letters of a different word or phrase leetcode.com 2. 코드 같은 알파벳 조합으로 이루어진 단어들을 배열로 묶어 리턴하.. [리트코드] 39. Combination Sum - js 1. 문제 https://leetcode.com/problems/combination-sum/ Combination Sum - LeetCode Can you solve this real interview question? Combination Sum - Given an array of distinct integers candidates and a target integer target, return a list of all unique combinations of candidates where the chosen numbers sum to target. You may return the comb leetcode.com 2. 코드 /** * @param {number[]} candidates * @para.. 이전 1 ··· 4 5 6 7 8 9 10 ··· 63 다음