본문 바로가기

전체 글135

[스프링부트] 버그 수정기 최근에 이것저것 고쳤었는데, 이래저래 욕심껏 붙이니 우리 프로젝트가 힘들어한다. 안 돌아간다.그래서 공부를 제대로 하고 조금씩 수정해보는 시간을 가져보려고한다. 일단, 컴퓨터를 자주 쓰긴 하지만 휴대폰이 접근성이 좋아서 휴대폰에서도 돌아가도록 만들고 싶었다. 그래서 이것저것 욕심대로 붙였다.그래서 동시성 문제를 해결할겸.. SSE 도 써보고 싶었고.. 뭐 이것저것 재밌어 보이는 기술을 다 넣어봤다.그랬더니 안 돌아갔다.. 허허 지금까지 만들었던 모든 코드를 수정해야하는 상태가 되어버렸고. 좀 미적미적 수정을 하다보니 블로그도 점차 멀어지게 되었다.어쨋든 지금까지의 상황은 다음과 같다.SSE 를 넣어서 여러 기기에서 실시간 동기화가 되도록 수정하고 싶다!그래서 뭔가 하고 있었다. 지피티에게 물어보니 뭐 이.. 2025. 3. 26.
[리트코드]2-2일차 열심히 공부해야 할 명목이 생겼다.  https://leetcode.com/problems/maximum-depth-of-binary-tree/description/?envType=study-plan-v2&envId=top-interview-150 간단하게 풀었다. 2025. 3. 25.
[리트코드] 2-1 일차 이곳저곳 여행을 다니다보니 코딩에 소원해졌다. 다시 열심히 해보자.  https://leetcode.com/problems/lru-cache/description/?envType=study-plan-v2&envId=top-interview-150class Node{ int key; int val; Node prev; Node next; public Node(int key, int val){ this.key = key; this.val = val; this.prev = null; this.next = null; }}class LRUCache { private int cap; private Map cache;.. 2025. 3. 18.
[대만여행기] 타이페이 여행기 친구와 함께 자유여행으로 대만을 다녀왔다.느낀 점들을 기억할 겸 슥슥 적어본다. 월요일에 도착해서 토요일에 한국에 돌아오는 4박 5일 여정이었다. 여행다니면서 3일가는건 몸만 축내는 것 같아서 최대한 길게 잡았다. 1일차첫날에는 대만에 도착해서 하이디라오를 다녀온 후 타이페이 메인 역 근처에 있는 숙소에서 머물렀다. cityinn branch 1 이었다. 개인적으로 깔끔해서 잘 쓰고 왔다. 조용하기도 했다. 방음은 잘 안되는 것 같은데 티비로 노래 들으며 생활하긴 살긴 했다. 막상 밖에서는 잘 안들렸는데 옆방은 잘 모르겠다. 컴플레인 안 들어왔으니까 괜찮지 않을까..?그 후 시먼딩 야시장을 다녀왔다. 느낀점은 홍대였다. 캐릭터들이 많은 거리였다. 주변에서 지파이와 행복당 밀크티, 곱창국수를 먹었는데 그렇.. 2025. 3. 16.
[리트코드]20일차 60문제 가량 풀었다. 86. Partition List/** * Definition for singly-linked list. * public class ListNode { * int val; * ListNode next; * ListNode() {} * ListNode(int val) { this.val = val; } * ListNode(int val, ListNode next) { this.val = val; this.next = next; } * } */class Solution { public ListNode partition(ListNode head, int x) { ListNode slist = new ListNode(); .. 2025. 2. 28.
리트코드 19일차 19. Remove Nth Node From End of List/** * Definition for singly-linked list. * public class ListNode { * int val; * ListNode next; * ListNode() {} * ListNode(int val) { this.val = val; } * ListNode(int val, ListNode next) { this.val = val; this.next = next; } * } */class Solution { public ListNode removeNthFromEnd(ListNode head, int n) { if (head.next == null && n 풀.. 2025. 2. 27.
테스트코드 작성하기 오늘할일- API 테스트 코드 작성하기- 새로운 프로젝트를 할지? 더 아이디어를 개발할지? 슬슬 백엔드 API 테스트 하는게 귀찮다. 이제 테스트코드를 작성해본다. 일단 테스트코드를 작성해야하는 것들은 다음과 같다.계획안habit c - ok, startdate_is_null, endDate_is_null, invalid_status, name_is_null, duplicate_namer - all_ok, active_ok, empty_listu - ok, invalid, status_update_onlyd - ok, invalid_id, already_deleted habitLog c - ok, invalid_habit_id, invalid_completedDate(다른날), duplicate_log_.. 2025. 2. 25.
리트코드 18일차 학교 졸업식이다!히히 학교가 꽃밭이 되었다. 예쁘다!  25. Reverse Nodes in k-Group/** * Definition for singly-linked list. * public class ListNode { * int val; * ListNode next; * ListNode() {} * ListNode(int val) { this.val = val; } * ListNode(int val, ListNode next) { this.val = val; this.next = next; } * } */class Solution { public ListNode reverse(ListNode start, ListNode end){ ListNod.. 2025. 2. 25.
[리트코드] 18일차 138. Copy List with Random Pointer/*// Definition for a Node.class Node { int val; Node next; Node random; public Node(int val) { this.val = val; this.next = null; this.random = null; }}*/class Solution { public Node copyRandomList(Node head) { Node dummy = new Node(0); Node answer= dummy; HashMap nodeMap = new HashMap(); while (.. 2025. 2. 24.