[2022 KAKAO TECH INTERNSHIP] 성격 유형 검사하기
내 풀이function solution(survey, choices) { const scores = [0,0,0,0] const mappings = { 'R' : 0, 'T' : 0, 'C' : 0, 'F' : 0, 'J' : 0, 'M' : 0, 'A' : 0, 'N' : 0 } choices.map((choice, idx) => { const score = choice -4 if (score > 0) { const surveyType = survey[idx][1] mappings[surveyType] += score }el..
[Leetcode] 1. Two Sum, 13. Roman to Integer
1. Two Sum링크https://leetcode.com/problems/two-sum/ 풀이시간 - 5:05var twoSum = function(nums, target) { for (let i=0; i 인사이트없음 13. Roman to Integer링크https://leetcode.com/problems/roman-to-integer/description/ 풀이시간 - 52:03const ROMAN_NUMBER = { I: 1, V: 5, X: 10, L: 50, C: 100, D: 500, M: 1000,};const SPECIAL_CASES = { 'I': { 'V': true, 'X': true }, 'X': { 'L': true, 'C': true }, 'C': { ..