본문 바로가기

전체 글400

[Easy] LeetCode- no.101 Symmetric Tree : Java https://leetcode.com/problems/symmetric-tree/description/?envType=study-plan-v2&envId=top-interview-150  문제이진 트리의 루트가 주어졌을 경우, 좌우 대칭인지 여부를 판단할 것   풀이참고 LeetCode 101(Symmetric Tree, java)0. 문제 https://leetcode.com/problems/symmetric-tree/ Symmetric Tree - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next int.. 2024. 10. 23.
[Easy] LeetCode - no.226 Invert Binary Tree : Java https://leetcode.com/problems/invert-binary-tree/description/?envType=study-plan-v2&envId=top-interview-150  문제이진 트리의 root 노드가 주어졌을 경우, 해당 트리의 좌우를 반전시킨 후 root를 반환할 것   풀이참고 LeetCode 226(Invert Binary Tree, java)0. 문제 https://leetcode.com/problems/invert-binary-tree/ Invert Binary Tree - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge a.. 2024. 10. 23.
[Easy] LeetCode - no.100 Same Tree : Java https://leetcode.com/problems/same-tree/description/?envType=study-plan-v2&envId=top-interview-150  문제2개의 이진 트리 p와 q가 주어졌을 때, 두 이진 트리가 서로 동일한지 판단할 것 Example 1Input: p = [1,2,3], q = [1,2,3]Output: true  Example 2   Input: p = [1,2], q = [1,null,2]Output: false    풀이참고 [자바] Leetcode 100 - Same Tree어쩌다 면접이 잡혀서 발등에 불떨어진 느낌으로 부랴부랴 문제 푸는중 ㅎ 친구한테 리트코드 추천 받아서 Difficulty Easy단계부터 풀고 있는데, 어렵지는 않다. 하지만 최적.. 2024. 10. 23.
[Easy] LeetCode - no.104 Maximum Depth of Binary Tree : Java https://leetcode.com/problems/maximum-depth-of-binary-tree/description/?envType=study-plan-v2&envId=top-interview-150  문제이진 트리의 root가 주어질 때, 해당 트리의 최대 깊이를 반환할 것 Example 1   Input: root = [3,9,20,null,null,15,7]Output: 3      풀이참고 리트코드 - 104. Maximum Depth of Binary Tree리트코드 - 104. Maximum Depth of Binary Tree 출처 - https://leetcode.com/problems/maximum-depth-of-binary-tree/description/?envType=st.. 2024. 10. 23.
[우테코] 7기 프리코스 1주차 회고- 1탄 1주차 미션 : 문자열 덧셈 계산기6기 프리코스 1주차 미션보다 간단한 내용이었다. 그렇기에 기능 구현 외에도 스스로 성장할 수 있을만한 포인트들을 고민하였다.   3가지 성장 포인트!MVC 패턴 적용테스트코드 작성클래스 다이어그램 작성 고민했던 부분 🧐MVC 패턴 적용Q. 복잡하지 않은 기능을 구현하는데 있어 MVC 패턴을 적용해야 할까?A. 적용해보자!이유1 : 앞으로의 과제들에도 MVC 패턴을 적용할 생각이기에 미리 익혀두기 위함이유2 : 최근 객체지향의 사실과 오해라는 책을 읽고 OOP와 MVC 패턴에 관심이 높아짐이유3 : 코드의 명확성과 가독성 향상이유4 : 각 클래스별로 책임 분리 클래스 다이어그램 범위Q. 정적 클래스의 사용도 클래스 다이어그램에 포함되어야 할까?A. 포함하자!이유1 : .. 2024. 10. 22.
[Easy] LeetCode - no.21 Merge Two Sorted Lists : Java https://leetcode.com/problems/merge-two-sorted-lists/description/?envType=study-plan-v2&envId=top-interview-150\  문제두 개의 정렬된 연결 리스트가 주어졌을 때, 이를 정렬된 순서(오름차순) 를 지키며 병합시킬 것 Example 1   Input: list1 = [1,2,4], list2 = [1,3,4]Output: [1,1,2,3,4,4]     풀이1 public static ListNode mergeTwoLists(ListNode list1, ListNode list2) { if (list1 != null && list2 != null) { if (list1.val  참고.. 2024. 10. 21.