leetcode 14

[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' 등으로 동일한 캐릭터로 순서만 바꿔서 나왔을때, 해당 문자..

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

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

반응형