본문 바로가기
728x90
반응형

공부60

99클럽 코테 스터디 39일차 TIL + [LeetCode] 1338. Reduce Array Size to The Half/힙/JAVA풀이 1. 오늘의 학습 키워드  [LeetCode] 1338. Reduce Array Size to The Half/힙/JAVA풀이 자바   2. 오늘의 학습 문제 문제 https://leetcode.com/problems/reduce-array-size-to-the-half/ You are given an integer array arr. You can choose a set of integers and remove all the occurrences of these integers in the array.Return the minimum size of the set so that at least half of the integers of the array are removed. Example 1:Input.. 2024. 6. 27.
[Doit 자료구조와 알고리즘] ch5 2024. 6. 26.
99클럽 코테 스터디 38일차 TIL + [LeetCode] 1845. Seat Reservation Manager/힙/JAVA풀이 1. 오늘의 학습 키워드  [LeetCode] 1845. Seat Reservation Manager/힙/JAVA풀이 2. 오늘의 학습 문제 문제https://leetcode.com/problems/seat-reservation-manager/ Design a system that manages the reservation state of n seats that are numbered from 1 to n.Implement the SeatManager class:SeatManager(int n) Initializes a SeatManager object that will manage n seats numbered from 1 to n. All seats are initially available.int .. 2024. 6. 26.
[Doit 자료구조와 알고리즘] Ch 4 스택, 큐 2024. 6. 25.
99클럽 코테 스터디 37일차 TIL + [LeetCode] 921. Minimum Add to Make Parentheses Valid/스택/큐/JAVA 풀이 1. 오늘의 학습 키워드 [LeetCode] 921. Minimum Add to Make Parentheses Valid/스택/큐/JAVA 풀이    2. 오늘의 학습 문제 문제https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/description/ 921. Minimum Add to Make Parentheses Valid   A parentheses string is valid if and only if:It is the empty string,It can be written as AB (A concatenated with B), where A and B are valid strings, orIt can be written as .. 2024. 6. 25.
[Doit 자료구조와 알고리즘] Ch 1, 2, 3 알고리즘 기초/기본 자료구조와 배열/검색 알고리즘 공부 정리 노트 2024.6.24~ 2024.6.30 목표로 빠르게 개념을 정리하고 자료구조 복습 겸 책을 공부하기로 했다. 노트에 필기하며 정리했다. 오늘은 ch1~3강을 공부했다. Ch1. 알고리즘 기초 알고리즘이란? 반복하는 알고리즘 Ch2 기본 자료구조와 배열 자료구조와 배열 배열이란? Ch3 검색 알고리즘 검색 알고리즘이란? 선형 검색 이진 검색 해시법 파이썬은 인터프리터 언어로, 객체가 힙 영역에 할당된다. 변수는 객체를 복사하는 것이 아닌, 객체를 참조한다. 포인터와 닮아있다고 느꼈다. 자료구조의 전반적인 내용을 복습할 수 있었고, 파이썬 언어에 대해서도 이것이 어떠한 언어인지 다시금 개념을 다잡을 수 있었다. 2024. 6. 24.
99클럽 코테 스터디 36일차 TIL + [LeetCode] 2390. Removing Stars From a String/스택/큐/JAVA풀이 1. 오늘의 학습 키워드 [LeetCode] 2390. Removing Stars From a String/스택/큐/JAVA풀이  2. 오늘의 학습 문제 문제 https://leetcode.com/problems/removing-stars-from-a-string/description/ [LeetCode] 2390. Removing Stars From a String You are given a string s, which contains stars *.In one operation, you can:Choose a star in s.Remove the closest non-star character to its left, as well as remove the star itself.Return the s.. 2024. 6. 24.
99클럽 코테 스터디 34일차 TIL + [LeetCode] 1823. Find the Winner of the Circular Game/스택/큐/JAVA풀이/원형리스트 1. 오늘의 학습 키워드 [LeetCode] 1823. Find the Winner of the Circular Game/스택/큐/JAVA풀이 -원형리스트원형리스트란, 리스트의 마지막 노드의 링크가 첫번째 노드를 가리기는 연결 리스트로 원형을 하고 있다. 선행 노드의 포인터가 필요하다.    2. 오늘의 학습 문제 문제 https://leetcode.com/problems/find-the-winner-of-the-circular-game/description/ There are n friends that are playing a game. The friends are sitting in a circle and are numbered from 1 to n in clockwise order. More for.. 2024. 6. 22.
99클럽 코테 스터디 32일차 TIL + [LeetCode] 347. Top K Frequent Elements 정렬 1. 오늘의 학습 키워드  [LeetCode] 347. Top K Frequent Elements 정렬 2. 오늘의 학습 문제 문제 https://leetcode.com/problems/top-k-frequent-elements/description/  코드import java.util.*;class Solution { public int[] topKFrequent(int[] nums, int k) { HashMap frequentMap = new HashMap() ; // num을 키로하고 개수를 담는 해시맵 초기화 for(int num: nums){ int keyValue= 0 ; if(frequentMap.containsK.. 2024. 6. 20.
728x90
반응형