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

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] 78. Subsets

소스 코드는 여f기 있습니다. 문제는 여기 있습니다. Problem Given an integer array nums of unique elements, return all possible subsets (the power set). The solution set must not contain duplicate subsets. Return the solution in any order. Example 1: Input: nums = [1,2,3] Output: [[],[1],[2],[1,2],[3],[1,3],[2,3],[1,2,3]] Example 2: Input: nums = [0] Output: [[],[0]] Constraints: 1

Algorithm/LeetCode 2023. 7. 2. 03:57
[LeetCode] 240. Search a 2D Matrix II

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Write an efficient algorithm that searches for a value target in an m x n integer matrix matrix. This matrix has the following properties: Integers in each row are sorted from left to right. The first integer of each row is greater than the last integer of the previous row. Example 1: Input: matrix = [[1,3,5,7],[10,11,16,20],[23,30,34,60]], target = 3 Output:..

Algorithm/LeetCode 2023. 7. 1. 03:56
[LeetCode] 46. Permutations

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given an array nums of distinct integers, return all the possible permutations. You can return the answer in any order. Example 1: Input: nums = [1,2,3] Output: [[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,1,2],[3,2,1]] Example 2: Input: nums = [0,1] Output: [[0,1],[1,0]] Example 3: Input: nums = [1] Output: [[1]] Constraints: 1

Algorithm/LeetCode 2023. 6. 30. 03:54
[LeetCode] 230. Kth Smallest Element in a BST

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given the root of a binary search tree, and an integer k, return the kth smallest value (1-indexed) of all the values of the nodes in the tree. Example 1: Input: root = [3,1,4,null,2], k = 1 Output: 1 Example 2: Input: root = [5,3,6,2,4,null,null,1], k = 3 Output: 3 Constraints: The number of nodes in the tree is n. 1

Algorithm/LeetCode 2023. 6. 29. 23:23
[LeetCode] 334. Increasing Triplet Subsequence

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given an integer array nums, return true if there exists a triple of indices (i, j, k) such that i < j < k and nums[i] < nums[j] < nums[k]. If no such indices exists, return false. Example 1: Input: nums = [1,2,3,4,5] Output: true Explanation: Any triplet where i < j < k is valid. Example 2: Input: nums = [5,4,3,2,1] Output: false Explanation: No triplet exis..

Algorithm/LeetCode 2023. 6. 28. 22:53
[LeetCode] 328. Odd Even Linked List

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given the head of a singly linked list, group all the nodes with odd indices together followed by the nodes with even indices, and return the reordered list. The first node is considered odd, and the second node is even, and so on. Note that the relative order inside both the even and odd groups should remain as it was in the input. You must solve the problem..

Algorithm/LeetCode 2023. 6. 27. 22:52
[LeetCode] 322. Coin Change

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem You are given an integer array coins representing coins of different denominations and an integer amount representing a total amount of money. Return the fewest number of coins that you need to make up that amount. If that amount of money cannot be made up by any combination of the coins, return -1. You may assume that you have an infinite number of each kind..

Algorithm/LeetCode 2023. 6. 26. 21:18
[LeetCode] 1027. Longest Arithmetic Subsequence

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given an array nums of integers, return the length of the longest arithmetic subsequence in nums. Note that: A subsequence is an array that can be derived from another array by deleting some or no elements without changing the order of the remaining elements. A sequence seq is arithmetic if seq[i + 1] - seq[i] are all the same value (for 0

Algorithm/LeetCode 2023. 6. 23. 23:18
188. Best Time to Buy and Sell Stock IV

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem You are given an integer array prices where prices[i] is the price of a given stock on the ith day, and an integer k. Find the maximum profit you can achieve. You may complete at most k transactions. Note: You may not engage in multiple transactions simultaneously (i.e., you must sell the stock before you buy again). Example 1: Input: k = 2, prices = [2,4,1] ..

Algorithm/LeetCode 2022. 9. 13. 12:00
1996. The Number of Weak Characters in the Game

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem You are playing a game that contains multiple characters, and each of the characters has two main properties: attack and defense. You are given a 2D integer array properties where properties[i] = [attacki, defensei] represents the properties of the ith character in the game. A character is said to be weak if any other character has both attack and defense lev..

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

티스토리툴바