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

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/LeetCode (258)
1463. Cherry Pickup II

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem You are given a rows x cols matrix grid representing a field of cherries where grid[i][j] represents the number of cherries that you can collect from the (i, j) cell. You have two robots that can collect cherries for you: Robot #1 is located at the top-left corner (0, 0), and Robot #2 is located at the top-right corner (0, cols - 1). Return the maximum number..

Algorithm/LeetCode 2022. 1. 9. 10:30
382. Linked List Random Node

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given a singly linked list, return a random node's value from the linked list. Each node must have the same probability of being chosen. Implement the Solution class: Solution(ListNode head) Initializes the object with the integer array nums. int getRandom() Chooses a node randomly from the list and returns its value. All the nodes of the list should be e..

Algorithm/LeetCode 2022. 1. 8. 10:30
1094. Car Pooling

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem There is a car with capacity empty seats. The vehicle only drives east (i.e., it cannot turn around and drive west). You are given the integer capacity and an array trips where trip[i] = [numPassengersi, fromi, toi] indicates that the ith trip has numPassengersi passengers and the locations to pick them up and drop them off are fromi and toi respectively. The..

Algorithm/LeetCode 2022. 1. 7. 10:30
131. Palindrome Partitioning

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given a string s, partition s such that every substring of the partition is a palindrome. Return all possible palindrome partitioning of s. A palindrome string is a string that reads the same backward as forward. Example 1: Input: s = "aab" Output: [["a","a","b"],["aa","b"]] Example 2: Input: s = "a" Output: [["a"]] Constraints: 1

Algorithm/LeetCode 2022. 1. 6. 10:30
1009. Complement of Base 10 Integer

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem The complement of an integer is the integer you get when you flip all the 0's to 1's and all the 1's to 0's in its binary representation. For example, The integer 5 is "101" in binary and its complement is "010" which is the integer 2. Given an integer n, return its complement. Example 1: Input: n = 5 Output: 2 Explanation: 5 is "101" in binar..

Algorithm/LeetCode 2022. 1. 5. 10:30
997. Find the Town Judge

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem In a town, there are n people labeled from 1 to n. There is a rumor that one of these people is secretly the town judge. If the town judge exists, then: The town judge trusts nobody. Everybody (except for the town judge) trusts the town judge. There is exactly one person that satisfies properties 1 and 2. You are given an array trust where trust[i] = [ai, bi]..

Algorithm/LeetCode 2022. 1. 4. 10:30
1010. Pairs of Songs With Total Durations Divisible by 60

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem You are given a list of songs where the ith song has a duration of time[i] seconds. Return the number of pairs of songs for which their total duration in seconds is divisible by 60. Formally, we want the number of indices i, j such that i < j with (time[i] + time[j]) % 60 == 0. Example 1: Input: time = [30,20,150,100,40] Output: 3 Explanation: Three pairs hav..

Algorithm/LeetCode 2022. 1. 3. 10:30
1026. Maximum Difference Between Node and Ancestor

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given the root of a binary tree, find the maximum value v for which there exist different nodes a and b where v = |a.val - b.val| and a is an ancestor of b. A node a is an ancestor of b if either: any child of a is equal to b or any child of a is an ancestor of b. Example 1: Input: root = [8,3,10,1,6,null,14,null,null,4,7,13] Output: 7 Explanation: We have va..

Algorithm/LeetCode 2022. 1. 2. 10:30
[LeetCode - Daily Challenge] 876. Middle of the Linked List

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given the head of a singly linked list, return the middle node of the linked list. If there are two middle nodes, return the second middle node. Example 1: Input: head = [1,2,3,4,5] Output: [3,4,5] Explanation: The middle node of the list is node 3. Example 2: Input: head = [1,2,3,4,5,6] Output: [4,5,6] Explanation: Since the list has two middle nodes with va..

Algorithm/LeetCode 2021. 12. 31. 10:30
[LeetCode - Daily Challenge] 476. Number Complement

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem The complement of an integer is the integer you get when you flip all the 0&#39;s to 1&#39;s and all the 1&#39;s to 0&#39;s in its binary representation. For example, The integer 5 is "101" in binary and its complement is "010" which is the integer 2. Given an integer num, return its complement. Example 1: Input: num = 5 Output: 2 Explanation: The binary repr..

Algorithm/LeetCode 2021. 12. 29. 10:30
이전 1 ··· 15 16 17 18 19 20 21 ··· 26 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
  • github
TAG
  • gRPC
  • Jackson
  • 스프링부트
  • leetcode
  • Spring Boot Tutorial
  • 스프링 부트
  • 클린 아키텍처
  • JSON
  • 스프링 부트 회원 가입
  • QueryDSL
  • Spring Boot
  • proto3
  • r
  • Spring Boot JPA
  • Java
  • 스프링 부트 튜토리얼
  • 함께 자라기
  • 스프링 부트 애플리케이션
  • spring boot app
  • spring boot jwt
  • Linux
  • @ManyToOne
  • 알고리즘
  • Spring Data JPA
  • spring boot application
  • 헥사고날 아키텍처
  • intellij
  • JPA
  • 함께 자라기 후기
  • 스프링 데이터 jpa
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

티스토리툴바