다양한 자유를 꿈꾸는

  • 홈
  • 태그
  • 방명록

Edu./Leetcode 3

112. Path Sum

Given the root of a binary tree and an integer targetSum, return true if the tree has a root-to-leaf path such that adding up all the values along the path equals targetSum. A leaf is a node with no children. Example 1: Input: root = [5,4,8,11,null,13,4,7,2,null,null,null,1], targetSum = 22 Output: true 재귀함수 사용하여 풀이 1. targetSum - 노드의 값이 0이면서 left, rigth가 null일 경우 -> 해당 케이스 존재 --> true 2. left n..

Edu./Leetcode 2021.08.02

13. Roman to Integer

Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. For example, 2 is written as II in Roman numeral, just two one's added together. 12 is written as XII, which is simply X + II. The number 27 is written as XXVII, which is XX + V + II. Roman numerals are usually written largest to smallest from left to right. However, the numeral for four is not IIII. Instead, the ..

Edu./Leetcode 2021.07.29

21. Merge Two Sorted Lists

Merge two sorted linked lists and return it as a sorted list. The list should be made by splicing together the nodes of the first two lists. 두개의 정렬된 연결 리스트를 합치고, 이를 정렬된 리스트로 반환해라. 이 리스트는 처음 2개의 리스트의 노드들을 함께 잘라이어 만들어라. Example 1: Constraints: The number of nodes in both lists is in the range [0, 50]. -100

Edu./Leetcode 2021.07.27
이전
1
다음
더보기
프로필사진

다양한 자유를 꿈꾸는

  • All. (23)
    • Book. (0)
      • Economy (0)
    • Cop. (0)
    • Dev. (17)
      • DB (1)
      • Spring (2)
      • 객체지향 (5)
      • Framework (1)
      • Monitoring (1)
      • Java (1)
      • Apache Kafka (1)
      • Mobile (1)
    • Edu. (3)
      • Leetcode (3)

Tag

Solid, Kafka, 미들웨어, RomanToInt, apachekafka, LinkedList, Kraft, LeetCode, 노개북, java, jboss, redhat,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2026/01   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

방문자수Total

  • Today :
  • Yesterday :

Copyright © AXZ Corp. All rights reserved.

티스토리툴바