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

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] 442. Find All Duplicates in an Array

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given an integer array nums of length n where all the integers of nums are in the range [1, n] and each integer appears once or twice, return an array of all the integers that appears twice. You must write an algorithm that runs in O(n) time and uses only constant extra space. Example 1: Input: nums = [4,3,2,7,8,2,3,1] Output: [2,3] Example 2: Input: nums = [..

Algorithm/LeetCode 2021. 10. 7. 10:30
[LeetCode - Daily Challenge] 70. Climbing Stairs

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem You are climbing a staircase. It takes n steps to reach the top. Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top? Example 1: Input: n = 2 Output: 2 Explanation: There are two ways to climb to the top. 1. 1 step + 1 step 2. 2 steps Example 2: Input: n = 3 Output: 3 Explanation: There are three ways to climb to th..

Algorithm/LeetCode 2021. 10. 6. 10:30
[LeetCode - Daily Challenge] 463. Island Perimeter

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem You are given row x col grid representing a map where grid[i][j] = 1 represents land and grid[i][j] = 0 represents water. Grid cells are connected horizontally/vertically (not diagonally). The grid is completely surrounded by water, and there is exactly one island (i.e., one or more connected land cells). The island doesn't have "lakes", meaning the water..

Algorithm/LeetCode 2021. 10. 5. 10:30
[LeetCode - Daily Challenge] 55. Jump Game

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem You are given an integer array nums. You are initially positioned at the array's first index, and each element in the array represents your maximum jump length at that position. Return true if you can reach the last index, or false otherwise. Example 1: Input: nums = [2,3,1,1,4] Output: true Explanation: Jump 1 step from index 0 to 1, then 3 steps to the ..

Algorithm/LeetCode 2021. 10. 4. 09:43
[LeetCode - Daily Challenge] 174. Dungeon Game

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem The demons had captured the princess and imprisoned her in the bottom-right corner of a dungeon. The dungeon consists of m x n rooms laid out in a 2D grid. Our valiant knight was initially positioned in the top-left room and must fight his way through dungeon to rescue the princess. The knight has an initial health point represented by a positive integer. If ..

Algorithm/LeetCode 2021. 10. 2. 16:11
[LeetCode - Daily Challenge] 698. Partition to K Equal Sum Subsets

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given an integer array nums and an integer k, return true if it is possible to divide this array into k non-empty subsets whose sums are all equal. Example 1: Input: nums = [4,3,2,3,5,2,1], k = 4 Output: true Explanation: It's possible to divide it into 4 subsets (5), (1, 4), (2,3), (2,3) with equal sums. Example 2: Input: nums = [1,2,3,4], k = 3 Output: ..

Algorithm/LeetCode 2021. 10. 1. 10:48
[LeetCode - Daily Challenge] 725. Split Linked List in Parts

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given the head of a singly linked list and an integer k, split the linked list into k consecutive linked list parts. The length of each part should be as equal as possible: no two parts should have a size differing by more than one. This may lead to some parts being null. The parts should be in the order of occurrence in the input list, and parts occurring ea..

Algorithm/LeetCode 2021. 9. 30. 10:30
[LeetCode - Daily Challenge] 922. Sort Array By Parity II

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given an array of integers nums, half of the integers in nums are odd, and the other half are even. Sort the array so that whenever nums[i] is odd, i is odd, and whenever nums[i] is even, i is even. Return any answer array that satisfies this condition. Example 1: Input: nums = [4,2,5,7] Output: [4,5,2,7] Explanation: [4,7,2,5], [2,5,4,7], [2,7,4,5] would als..

Algorithm/LeetCode 2021. 9. 29. 16:33
[LeetCode - Daily Challenge] 1137. N-th Tribonacci Number

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem The Tribonacci sequence Tn is defined as follows: T0 = 0, T1 = 1, T2 = 1, and Tn+3 = Tn + Tn+1 + Tn+2 for n >= 0. Given n, return the value of Tn. Example 1: Input: n = 4 Output: 4 Explanation: T_3 = 0 + 1 + 1 = 2 T_4 = 1 + 1 + 2 = 4Example 2: Input: n = 25 Output: 1389537Constraints: 0

Algorithm/LeetCode 2021. 9. 24. 18:28
[LeetCode - Daily Challenge] 1328. Break a Palindrome

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given a palindromic string of lowercase English letters palindrome, replace exactly one character with any lowercase English letter so that the resulting string is not a palindrome and that it is the lexicographically smallest one possible. Return the resulting string. If there is no way to replace a character to make it not a palindrome, return an empty stri..

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

티스토리툴바