분류 전체보기 207

[leetcode] 125. Valid Palindrome 풀이, 해설 (python)

문제 링크 https://leetcode.com/problems/valid-palindrome/ Valid Palindrome - LeetCode Can you solve this real interview question? Valid Palindrome - A phrase is a palindrome if, after converting all uppercase letters into lowercase letters and removing all non-alphanumeric characters, it reads the same forward and backward. Alphanumeric cha leetcode.com neetcode 상에서 two pointers로 분류되어 있는 문제이다. 1차 풀이..

[leetcode] 128. Longest Consecutive Sequence 시간복잡도 O(n) 풀이, 해설 (python)

문제 링크 https://leetcode.com/problems/longest-consecutive-sequence/ Longest Consecutive Sequence - LeetCode Can you solve this real interview question? Longest Consecutive Sequence - Given an unsorted array of integers nums, return the length of the longest consecutive elements sequence. You must write an algorithm that runs in O(n) time. Example 1: Input: leetcode.com 1차 풀이 O(n)을 목표로 풀다가, O(nlogn..

[leetcode] 36. Valid Sudoku 풀이, 해설 (python)

[leetcode] 49. Group Anagrams 풀이, 해설 (python) 문제 링크 https://leetcode.com/problems/valid-sudoku/ Valid Sudoku - LeetCode Can you solve this real interview question? Valid Sudoku - Determine if a 9 x 9 Sudoku board is valid. Only the filled cells need to be validated according to the following rules: 1. Each row must contain the digits 1-9 without repetition. 2. Each c leetcode.com 스도쿠가 유효한지 확인하는 ..

[leetcode] 49. Group Anagrams 풀이, 해설 (python)

문제 링크 https://leetcode.com/problems/group-anagrams/ 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 'eat','aet','tae' 등으로 동일한 캐릭터로 순서만 바꿔서 나왔을때, 해당 문자..

chatgpt 통해 백엔드 기술면접/임원면접 준비하기

이번에 기술면접 준비하면서, 막히는 질문들에 대해서 chatgpt의 도움을 많이 받았다. 관련해서, 어떻게 chatgpt에게 물어봤는지 기록하였다. (몇년 후에도 잘 써먹을 수 있길) 1. 가상면접 진행하는법 안녕 나는 6년차 백엔드 개발자로, 이커머스 기업 개발자로 지원하고 있어. 1차 기술면접을 진행예정인데 spring boot, mysql을 사용하고 있는 기업이야. 나와 면접을 진행해줘. 너가 물어보면 내가 하나씩 대답할게. 이렇게 하면, 나와 아래와 같이 가상면접을 진행한다. 2. 질문에 대한 개요 짜달라고 하기. 개발자 직무의 최종 임원 면접에서 '5년후의 목표'에 대한 답변을 1분 내용으로 일반적인 형식으로 개요를 짜줄래 ? 3. 답변 작성하다가 막히는 부분 물어보기 개발자로서 주인의식을 가지..

개발/꿀팁 2023.10.12

python. set 과 dict 차이

배경 알고리즘을 풀다보면, map과 같이 고유한 값만 가지도록 체크해야 하는 경우고 있는데, 그 경우 나는 항상 dict를 썼었다. 그러다가, 다음 유투브를 통해 set의 존재를 알게되었다. leetcode 풀이 > https://leetcode.com/problems/contains-duplicate/ LeetCode - The World's Leading Online Programming Learning Platform 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 http..

개발/파이썬 2023.10.05

[chrome plugin] 단축키로 크롬 플러그인 연동 (suggested_key)

아래 문서를 참고해서 키보드 입력 시 크롬 플러그인이 실행되는 방법을 설명한다. https://developer.chrome.com/docs/extensions/reference/commands/ chrome.commands - Chrome for Developers Build the next generation of web experiences. developer.chrome.com 1. manifest.json에 추가 "background": { "service_worker": "service-worker.js" }, "permissions": ["activeTab", "scripting"], "commands": { "action1": { "suggested_key": { "default": "Ct..

개발 2023.09.30

알고리즘 풀이순서. neetcode 참고해서 leetcode 준비하기 (leethub)

neetcode 커리어리 '리트코드 569문제 풀고 구글에 입사한 사람 이야기' 을 보다가, 이 사이트를 알게되었다. https://neetcode.io/roadmap 이런식으로 어떤 순서로 풀면 좋을지 순서를 제공해주고, 각 문제마다 체크 여부와 star을 체크할 수 있다. 그리고 더 좋은 점은 각각의 문제들에 대해 유투브 동영상 해설을 제공해주는데, 해설 퀄리티가 꽤 높다. leetcode 한국에서는 백준과 비슷한 알고리즘 풀이 사이트이다. 백준의 baekjoonhub 처럼 github 소스코드로 자동으로 푸시해주는 크롬 플러그인을 제공해준다. https://shanepark.tistory.com/322 Leetcode) 소개 및 풀이 코드 Github에 자동 커밋방법 Intro 개발공부를 시작 한 ..

[chrome plugin] 크롬 플러그인 샘플 코드 작성해보기 (feat. development-basics)

chrome 공식 문서 >> https://developer.chrome.com/docs/extensions/mv3/getstarted/development-basics/ Chrome Extension development basics - Chrome for Developers What to expect during the development of a Chrome extension. developer.chrome.com Source Code >> manifest.json { "manifest_version": 3, "name": "Hello Extensions", "description": "Base Level Extension", "version": "1.0", "action": { "default_..

개발 2023.09.22
반응형