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

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)
[LeetCode - Daily Challenge] 790. Domino and Tromino Tiling

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem You have two types of tiles: a 2 x 1 domino shape and a tromino shape. You may rotate these shapes. Given an integer n, return the number of ways to tile an 2 x n board. Since the answer may be very large, return it modulo 109 + 7. In a tiling, every square must be covered by a tile. Two tilings are different if and only if there are two 4-directionally adjac..

Algorithm/LeetCode 2021. 12. 14. 10:30
[LeetCode - Daily Challenge] 1446. Consecutive Characters

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem The power of the string is the maximum length of a non-empty substring that contains only one unique character. Given a string s, return the power of s. Example 1: Input: s = "leetcode" Output: 2 Explanation: The substring "ee" is of length 2 with the character 'e' only. Example 2: Input: s = "abbcccddddeeeeedcba" Output: 5 Explanation: The substring ..

Algorithm/LeetCode 2021. 12. 13. 22:30
[LeetCode - Daily Challenge] 416. Partition Equal Subset Sum

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given a non-empty array nums containing only positive integers, find if the array can be partitioned into two subsets such that the sum of elements in both subsets is equal. Example 1: Input: nums = [1,5,11,5] Output: true Explanation: The array can be partitioned as [1, 5, 5] and [11]. Example 2: Input: nums = [1,2,3,5] Output: false Explanation: The array c..

Algorithm/LeetCode 2021. 12. 12. 22:30
[LeetCode - Daily Challenge] 878. Nth Magical Number

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem A positive integer is magical if it is divisible by either a or b. Given the three integers n, a, and b, return the nth magical number. Since the answer may be very large, return it modulo 109 + 7. Example 1: Input: n = 1, a = 2, b = 3 Output: 2 Example 2: Input: n = 4, a = 2, b = 3 Output: 6 Example 3: Input: n = 5, a = 2, b = 4 Output: 10 Example 4: Input: ..

Algorithm/LeetCode 2021. 12. 11. 22:30
[LeetCode - Daily Challenge] 1306. Jump Game III

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given an array of non-negative integers arr, you are initially positioned at start index of the array. When you are at index i, you can jump to i + arr[i] or i - arr[i], check if you can reach to any index with value 0. Notice that you can not jump outside of the array at any time. Example 1: Input: arr = [4,2,3,0,3,1,2], start = 5 Output: true Explanation: A..

Algorithm/LeetCode 2021. 12. 9. 22:30
[LeetCode - Daily Challenge] 1290. Convert Binary Number in a Linked List to Integer

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given head which is a reference node to a singly-linked list. The value of each node in the linked list is either 0 or 1. The linked list holds the binary representation of a number. Return the decimal value of the number in the linked list. Example 1: Input: head = [1,0,1] Output: 5 Explanation: (101) in base 2 = (5) in base 10 Example 2: Input: head = [0] O..

Algorithm/LeetCode 2021. 12. 8. 10:30
[LeetCode - Daily Challenge] 1217. Minimum Cost to Move Chips to The Same Position

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem We have n chips, where the position of the ith chip is position[i]. We need to move all the chips to the same position. In one step, we can change the position of the ith chip from position[i] to: position[i] + 2 or position[i] - 2 with cost = 0. position[i] + 1 or position[i] - 1 with cost = 1. Return the minimum cost needed to move all the chips to the same..

Algorithm/LeetCode 2021. 12. 7. 10:30
[LeetCode - Daily Challenge] 337. House Robber III

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem The thief has found himself a new place for his thievery again. There is only one entrance to this area, called root. Besides the root, each house has one and only one parent house. After a tour, the smart thief realized that all houses in this place form a binary tree. It will automatically contact the police if two directly-linked houses were broken into on..

Algorithm/LeetCode 2021. 12. 6. 10:30
[LeetCode - Daily Challenge] 198. House Robber

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping you from robbing each of them is that adjacent houses have security systems connected and it will automatically contact the police if two adjacent houses were broken into on the same night. Given an integer array ..

Algorithm/LeetCode 2021. 12. 2. 22:30
[LeetCode - Daily Challenge] 85. Maximal Rectangle

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given a rows x cols binary matrix filled with 0's and 1's, find the largest rectangle containing only 1's and return its area. Example 1: Input: matrix = [["1","0","1","0","0"],["1","0","1","1","1"],["1","1","1","1","1"],["1","0","0","1","0"]] Output: 6 Explanation: The maximal rectangle is shown in the above picture. Example 2: Input: matrix = []..

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

티스토리툴바