LeetCode

Algorithm/PTUStudy

9주차. 스택, 큐(원형 큐 디자인)

25. 원형 큐 디자인 https://leetcode.com/problems/design-circular-queue/ Design Circular Queue - LeetCode Can you solve this real interview question? Design Circular Queue - Design your implementation of the circular queue. The circular queue is a linear data structure in which the operations are performed based on FIFO (First In First Out) principle, and the leetcode.com 📌문제 원형 큐를 디자인하라 - 예제1 📝입력 ["My..

Algorithm/PTUStudy

9주차. 스택,큐(스택을 이용한 큐 구현)

24. 스택을 이용한 큐 구현 https://leetcode.com/problems/implement-queue-using-stacks/ Implement Queue using Stacks - LeetCode Can you solve this real interview question? Implement Queue using Stacks - Implement a first in first out (FIFO) queue using only two stacks. The implemented queue should support all the functions of a normal queue (push, peek, pop, and empty). Implement t leetcode.com 📌문제 스택을 이용해..

Algorithm/PTUStudy

6-7주차 연결 리스트(홀짝 연결리스트)

18. 홀짝 연결리스트 https://leetcode.com/problems/odd-even-linked-list/ Odd Even Linked List - LeetCode Odd Even Linked List - Given the head of a singly linked list, group all the nodes with odd indices together followed by the nodes with even indices, and return the reordered list. The first node is considered odd, and the second node is even, and so on. N leetcode.com 📌문제 연결 리스트를 홀수 노드 다음에 짝수 노드가 오도..

Algorithm/PTUStudy

6-7주차 연결 리스트(페어의 노드 스왑)

왜 6-7주차냐면 6주차에 푼 문제인데 7주차에 복습을 하기로 해성ㅋ 이 문제 때문에 아이패드를 꺼냈다. 난 집념의 K국가 시민. 깨달음을 얻었다. 17. 페어의 노드 스왑 https://leetcode.com/problems/swap-nodes-in-pairs/https://leetcode.com/problems/add-two-numbers/ Add Two Numbers - LeetCode Add Two Numbers - You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order, and each of their nodes contains a sin..

Algorithm/PTUStudy

7주차. 연결리스트 복습(두 정렬 리스트의 병합)

https://memodayoungee.tistory.com/39 5주차. 연결 리스트(두 정렬 리스트의 병합) 14. 두 정렬 리스트의 병합 https://leetcode.com/problems/merge-two-sorted-lists/ Merge Two Sorted Lists - LeetCode Merge Two Sorted Lists - You are given the heads of two sorted linked lists list1 and list2. Merge the two lists in a one sorted list memodayoungee.tistory.com 복습했던 문제. 때는 바야흐로 12일. 팀원 모두가 "연결 리스트" 라는 난관에 봉착했다. 백준 문제는 돌아가며 풀이했지만, ..

Algorithm/PTUStudy

6주차. 연결리스트(두 수의 덧셈)

16. 두 수의 덧셈 https://leetcode.com/problems/add-two-numbers/https://leetcode.com/problems/add-two-numbers/ Add Two Numbers - LeetCode Add Two Numbers - You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order, and each of their nodes contains a single digit. Add the two numbers and return the sum as a linked list. You may as leetcode.c..

Algorithm/PTUStudy

5주차. 연결 리스트(역순 연결 리스트)

15. 역순 연결 리스트 https://leetcode.com/problems/reverse-linked-list/ Reverse Linked List - LeetCode Reverse Linked List - Given the head of a singly linked list, reverse the list, and return the reversed list. Example 1: [https://assets.leetcode.com/uploads/2021/02/19/rev1ex1.jpg] Input: head = [1,2,3,4,5] Output: [5,4,3,2,1] Example 2: [https://asset leetcode.com 📌문제 연결 리스트를 뒤집어라. - 예제1 📝입력 head = ..

Algorithm/PTUStudy

5주차. 연결 리스트(두 정렬 리스트의 병합)

14. 두 정렬 리스트의 병합 https://leetcode.com/problems/merge-two-sorted-lists/ Merge Two Sorted Lists - LeetCode Merge Two Sorted Lists - You are given the heads of two sorted linked lists list1 and list2. Merge the two lists in a one sorted list. The list should be made by splicing together the nodes of the first two lists. Return the head of the merged linked list. leetcode.com 📌문제 정렬되어 있는 두 연결 리스트를 합..

Algorithm/PTUStudy

5주차. 연결 리스트(팰린드롬 연결 리스트)

13. 팰린드롬 연결 리스트 https://leetcode.com/problems/palindrome-linked-list/ Palindrome Linked List - LeetCode Palindrome Linked List - Given the head of a singly linked list, return true if it is a palindrome or false otherwise. Example 1: [https://assets.leetcode.com/uploads/2021/03/03/pal1linked-list.jpg] Input: head = [1,2,2,1] Output: true Example 2: [https leetcode.com 📌문제 연결 리스트가 팰린드롬 구조인지 판별하라 ..

Algorithm/PTUStudy

4주차. 배열(주식을 사고팔기 가장 좋은 시점)

11. 주식을 사고팔기 가장 좋은 시점 https://leetcode.com/problems/best-time-to-buy-and-sell-stock/ Best Time to Buy and Sell Stock - LeetCode Best Time to Buy and Sell Stock - You are given an array prices where prices[i] is the price of a given stock on the ith day. You want to maximize your profit by choosing a single day to buy one stock and choosing a different day in the future to sell that leetcode.com ..

지구우중
'LeetCode' 태그의 글 목록 (2 Page)