본문 바로가기 메뉴 바로가기

Jaime's 기술 블로그

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

Jaime's 기술 블로그

검색하기 폼
  • All (499)
    • IntelliJ IDEA (8)
    • SpringBoot (83)
      • Web Application 만들기 (71)
      • JWT 튜토리얼 (5)
    • Java (19)
    • JPA (33)
    • Querydsl (14)
    • SRE (7)
    • gRPC (10)
    • macOS (7)
    • Docker (1)
    • Linux (5)
    • R (5)
    • Test (3)
    • ETC (13)
    • Algorithm (265)
      • LeetCode (258)
    • Retrospect (4)
    • git (1)
    • Architecture (8)
    • Book (10)
      • 함께 자라기 (7)
      • 프로그래머의 뇌 (3)
    • Essay (1)
  • 방명록

Algorithm (265)
[LeetCode - Daily Challenge] 222.Count Complete Tree Nodes

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given the root of a complete binary tree, return the number of the nodes in the tree. According to Wikipedia, every level, except possibly the last, is completely filled in a complete binary tree, and all nodes in the last level are as far left as possible. It can have between 1 and 2h nodes inclusive at the last level h. Design an algorithm that runs in less..

Algorithm/LeetCode 2021. 10. 25. 09:47
[LeetCode - Daily Challenge] 496. Next Greater Element I

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem The next greater element of some element x in an array is the first greater element that is to the right of x in the same array. You are given two distinct 0-indexed integer arrays nums1 and nums2, where nums1 is a subset of nums2. For each 0

Algorithm/LeetCode 2021. 10. 21. 10:30
[LeetCode - Daily Challenge] 993. Cousins in Binary Tree

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given the root of a binary tree with unique values and the values of two different nodes of the tree x and y, return true if the nodes corresponding to the values x and y in the tree are cousins, or false otherwise. Two nodes of a binary tree are cousins if they have the same depth with different parents. Note that in a binary tree, the root node is at the de..

Algorithm/LeetCode 2021. 10. 20. 10:30
[LeetCode - Daily Challenge] 309. Best Time to Buy and Sell Stock with Cooldown

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem You are given an array prices where prices[i] is the price of a given stock on the ith day. Find the maximum profit you can achieve. You may complete as many transactions as you like (i.e., buy one and sell one share of the stock multiple times) with the following restrictions: After you sell your stock, you cannot buy stock on the next day (i.e., cooldown on..

Algorithm/LeetCode 2021. 10. 18. 10:30
[LeetCode - Daily Challenge] 279. Perfect Squares

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given an integer n, return the least number of perfect square numbers that sum to n. A perfect square is an integer that is the square of an integer; in other words, it is the product of some integer with itself. For example, 1, 4, 9, and 16 are perfect squares while 3 and 11 are not. Example 1: Input: n = 12 Output: 3 Explanation: 12 = 4 + 4 + 4. Example 2: ..

Algorithm/LeetCode 2021. 10. 17. 10:30
[LeetCode - Daily Challenge] 1008. Construct Binary Search Tree from Preorder Traversal

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given an array of integers preorder, which represents the preorder traversal of a BST (i.e., binary search tree), construct the tree and return its root. It is guaranteed that there is always possible to find a binary search tree with the given requirements for the given test cases. A binary search tree is a binary tree where for every node, any descendant of..

Algorithm/LeetCode 2021. 10. 16. 10:30
[LeetCode - Daily Challenge] 543. Diameter of Binary Tree

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given the root of a binary tree, return the length of the diameter of the tree. The diameter of a binary tree is the length of the longest path between any two nodes in a tree. This path may or may not pass through the root. The length of a path between two nodes is represented by the number of edges between them. Example 1: Input: root = [1,2,3,4,5] Output: ..

Algorithm/LeetCode 2021. 10. 15. 10:30
[LeetCode - Daily Challenge] 201. Bitwise AND of Numbers Range

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given two integers left and right that represent the range [left, right], return the bitwise AND of all numbers in this range, inclusive. Example 1: Input: left = 5, right = 7 Output: 4 Example 2: Input: left = 0, right = 0 Output: 0 Example 3: Input: left = 1, right = 2147483647 Output: 0 Constraints: 0 >= 1; move++; } return right test(5, 7, 4), () -> test(..

Algorithm/LeetCode 2021. 10. 14. 10:30
[LeetCode - Daily Challenge] 208. Implement Trie (Prefix Tree)

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem A trie (pronounced as "try") or prefix tree is a tree data structure used to efficiently store and retrieve keys in a dataset of strings. There are various applications of this data structure, such as autocomplete and spellchecker. Implement the Trie class: Trie() Initializes the trie object. void insert(String word) Inserts the string word into the trie. boo..

Algorithm/LeetCode 2021. 10. 10. 10:30
[LeetCode - Daily Challenge] 79. Word Search

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given an m x n grid of characters board and a string word, return true if word exists in the grid. The word can be constructed from letters of sequentially adjacent cells, where adjacent cells are horizontally or vertically neighboring. The same letter cell may not be used more than once. Example 1: Input: board = [["A","B","C","E"],["S","F","C","S"],["A","D"..

Algorithm/LeetCode 2021. 10. 9. 10:30
이전 1 ··· 20 21 22 23 24 25 26 27 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
  • github
TAG
  • 스프링 부트 튜토리얼
  • Spring Data JPA
  • Spring Boot JPA
  • Spring Boot
  • spring boot app
  • 알고리즘
  • 함께 자라기 후기
  • JPA
  • spring boot jwt
  • gRPC
  • Linux
  • JSON
  • Jackson
  • 스프링 부트 회원 가입
  • 클린 아키텍처
  • @ManyToOne
  • 스프링부트
  • leetcode
  • 스프링 부트 애플리케이션
  • Spring Boot Tutorial
  • proto3
  • 스프링 데이터 jpa
  • 헥사고날 아키텍처
  • r
  • 함께 자라기
  • spring boot application
  • QueryDSL
  • intellij
  • 스프링 부트
  • Java
more
«   2025/08   »
일 월 화 수 목 금 토
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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바