본문 바로가기

전체 글

Daily Leetcoding Challenge 118. Pascal's Triangle 오늘도 리트코드 챌린지로 하루 시작하기 https://leetcode.com/problems/pascals-triangle Pascal's Triangle - LeetCode Can you solve this real interview question? Pascal's Triangle - Given an integer numRows, return the first numRows of Pascal's triangle. In Pascal's triangle, each number is the sum of the two numbers directly above it as shown: [https://upload.wikimedia.o leetcode.com 직관 문제 자체가 직관적이기 때문에 문제 설명을 그대로.. 더보기
Daily Leetcoding Challenge 92. Reverse Linked List II 오늘도 준비운동 삼아한 문제 풀고 시작하려고 했는데.. 꼬여서 오전 내내 풀게 된 문제 😇 잘못된 접근 방법을 쓰고 있다면 빠르게 피벗 하는 것도 좋은 전략이다. https://leetcode.com/problems/reverse-linked-list-ii Reverse Linked List II - LeetCode Can you solve this real interview question? Reverse Linked List II - Given the head of a singly linked list and two integers left and right where left 더보기
Daily Leetcoding Challenge 725. Split Linked List in Parts 여러 가지 일이 몰리면서 머리가 아픈 상황이지만 그래도 오늘도 한 문제를 풀었다. 앞으로 나는 어떻게 해야 할지 참 고민이 많다. https://leetcode.com/problems/split-linked-list-in-parts Split Linked List in Parts - LeetCode Can you solve this real interview question? Split Linked List in Parts - Given the head of a singly linked list and an integer k, split the linked list into k consecutive linked list parts. The length of each part should be as equ.. 더보기
Daily Leetcoding Challenge 338. Counting Bits 오늘도 올려보는 리트코드 챌린지. Machine Learning 쪽 포지션들은 아무래도 파이썬을 주로 사용하는데, 때문에 코테를 볼 때 사용 언어를 파이썬으로 제한하는 경우가 있다. 그래서 앞으로는 파이썬으로도 코딩해보려고 한다. (난 타입스크립트를 더 자주 쓰고 싶은데..) https://leetcode.com/problems/counting-bits Counting Bits - LeetCode Can you solve this real interview question? Counting Bits - Given an integer n, return an array ans of length n + 1 such that for each i (0 더보기
Daily Leetcoding Challenge 141. Linked List Cycle 해커톤에 코딩테스트에 인터뷰 준비에 여러모로 바빠져서 며칠간 포스팅을 못했다. 9월 4일 오늘의 문제는 링크드 리스트에서 사이클을 찾는 문제였다. https://leetcode.com/problems/linked-list-cycle Linked List Cycle - LeetCode Can you solve this real interview question? Linked List Cycle - Given head, the head of a linked list, determine if the linked list has a cycle in it. There is a cycle in a linked list if there is some node in the list that can be reached .. 더보기
Daily LeetCoding Challenge 6. Zigzag Conversion 예전에 이 문제를 봤을 땐 어떻게 풀어야 할지 몰랐었는데 오늘은 갑자기 아이디어가 떠올라서 거의 바로 풀 수 있었다! 앞으로 이런 날이 더 자주 생기면 좋겠다 😊 https://leetcode.com/problems/zigzag-conversion Zigzag Conversion - LeetCode Can you solve this real interview question? Zigzag Conversion - The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legib.. 더보기
Daily LeetCoding Challenge 2483. Minimum Penalty for a Shop Leetcode 75 스터디 플랜이 끝났다. 앞으로는 Daily LeetCoding Challenge를 풀어볼 생각이다. https://leetcode.com/problems/minimum-penalty-for-a-shop Minimum Penalty for a Shop - LeetCode Can you solve this real interview question? Minimum Penalty for a Shop - You are given the customer visit log of a shop represented by a 0-indexed string customers consisting only of characters 'N' and 'Y': * if the ith character is 'Y.. 더보기
Leetcode 75 day25 (Non-overlapping Intervals, Best Time to Buy and Sell Stock with Transaction Fee, Domino and Tromino Tiling) Leetcode 75의 마지막 날이다! Interval 1문제, Dynamic Programming 2문제가 마지막 문제들이다. 435. Non-overlapping Intervals 주어진 배열 intervals가 있을 때, 배열에 들어있는 interval들이 서로 겹치지 않도록 삭제해야 하는 최소 interval의 개수를 구하여라. Given an array of intervals intervals where intervals[i] = [start_i, end_i], return the minimum number of intervals you need to remove to make the rest of the intervals non-overlapping. intervals를 정렬해야 하는데, 직관.. 더보기