일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
- 삼항연산자
- 엘리스
- 자바스크립트
- 자바스크립트 reduce()
- 프론트개발
- [파이썬 실습] 심화 문제
- 엘리스 AI 트랙 5기
- 날씨 웹 만들기
- 자바스크립트 sort()
- reactnativecli
- HTML
- 엘리스 ai 트랙
- JavaScript
- 자바스크립트 split()
- leetcode
- 코드스테이츠
- [AI 5기] 연습 문제집
- 부트캠프
- 자바스크립트 날씨 웹 만들기
- [파이썬 실습] 기초 문제
- 리트코드
- 개발일기
- 코딩부트캠프
- [파이썬 실습] 중급 문제
- RN 프로젝트
- 프론트개발공부
- 자바스크립트 날씨
- 간단한 날씨 웹 만들기
- 개발공부
- 프로그래머스
- Today
- Total
목록leetcode (32)
개발조각

안녕하세요. 개발조각입니다.😊 이번 문제는 알고리즘 문제 풀면 무조건 보는 문제인 것 같아요. 저도 이전에 프로그래머스에서 풀었었는데 또 보니까 반갑네요. https://leetcode.com/problems/valid-parentheses/ Valid Parentheses - 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 isValid = function(s) { bracketMap =..

안녕하세요. 개발조각입니다.😊 이번 문제는 15번 문제의 업그레이드 버전 문제인 것 같아요. 15번 문제를 푸신 분들은 쉽게 풀었을 것 같아요. 혹시 15번 문제를 안푸시고 18번 문제를 푸시는 거라면 15번 문제를 먼저 풀고 오시길 바랍니다. (제가 해결방안에 대해 자세히 썼거든요!!) https://development-piece.tistory.com/230 [리트코드] 15. 3Sum 안녕하세요. 개발조각입니다.😊 이제 문제가 슬슬 어려워지네요ㅠ 이번 문제는 너무 답답한 나머지 검색해서 찾은 방법을 적용해보았어요. 알고리즘은 모르면 암기하라 했으니 암기하는 걸로. development-piece.tistory.com https://leetcode.com/problems/4sum/ 4Sum - Lee..

안녕하세요. 개발조각입니다.😊 이번 문제는 제 머리로 해결 못할 것 같아서 답을 찾아서 풀어보았습니다. https://leetcode.com/problems/letter-combinations-of-a-phone-number/ Letter Combinations of a Phone 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 이문제는 재귀 순열을 이용해서 풀었습니다. 문제가 문자열이 주어지면 숫자가 나타낼 수 있는 가능한 모든 문자 조합을 반환..

안녕하세요. 개발조각입니다.😊 이번 문제는 15번 문제의 응용 버전인 것 같아요. 15번을 이해하셨으면 쉽게 풀었을 것 같고, 16번 답안이 15번 코드와 90% 정도 똑같은 것 같아요. https://leetcode.com/problems/3sum-closest/ 3Sum Closest - 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 threeSumClosest = function(nums, target) { nums.sort((a,b)=>a..

안녕하세요. 개발조각입니다.😊 이제 문제가 슬슬 어려워지네요ㅠ 이번 문제는 너무 답답한 나머지 검색해서 찾은 방법을 적용해보았어요. 알고리즘은 모르면 암기하라 했으니 암기하는 걸로...ㅎㅎ https://leetcode.com/problems/3sum/ 3Sum - 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 처음에 단순하게 중첩 for문을 썼는데 런타임 에러가 나더라고요.😂 그래서 도저히 방법을 모르겠어서 찾아봤습니다. https://wookgu.tistor..

안녕하세요. 개발조각입니다.😊 이번에는 문제가 easy인데 제가 꼬아서 생각해서 돌고 돌다가 푼 문제입니다.ㅠ (내가 많이 꼬인성격이라 그런가...ㅎㅎ) https://leetcode.com/problems/longest-common-prefix/ Longest Common Prefix - 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 longestCommonPrefix = function(strs) { let sortStrs = strs.sor..

안녕하세요. 개발조각입니다.😊 이번에는 12번문제의 반대 버전이에요. 확실히 easy이다 보니 쉽더라고요. https://leetcode.com/problems/roman-to-integer/ Roman to Integer - 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 romanToInt = function(s) { let roma = {'I':1, 'V':5, 'X':10, 'L':50, 'C':100, 'D':500, 'M':1000}; ..

안녕하세요. 개발조각입니다.😊 이번 문제는 어려운 건 아닌데... 머리를 굴려야 해결할 수 있어서 푸는데 좀 오래 걸렸어요ㅠ https://leetcode.com/problems/integer-to-roman/submissions/ Integer to Roman - 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 intToRoman = function(num) { let roma = {1:'I', 5:'V', 10:'X', 50:'L', 100:'..