소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Alice and Bob take turns playing a game, with Alice starting first. Initially, there are n stones in a pile. On each player's turn, that player makes a move consisting of removing any non-zero square number of stones in the pile. Also, if a player cannot make a move, he/she loses the game. Given a positive integer n, return true if and only if Alice wins ..
본 포스팅은 백기선님의 스프링과 JPA 기반 웹 애플리케이션 개발 강의를 참고하여 작성하였습니다. 소스 코드는 여기 있습니다. (commit hash: 821d983) > git clone https://github.com/lcalmsky/spring-boot-app.git > git checkout 821d983 ℹ️ squash merge를 사용해 기존 branch를 삭제하기로 하여 앞으로는 commit hash로 포스팅 시점의 소스 코드를 공유할 예정입니다. Overview 프로필 뷰를 구현합니다. Description 프로필은 누가 보느냐에 따라 달라지고 정보 입력 유무에 따라 달라져야 합니다. 인증된 사용자가 자기 프로필 화면을 조회할 때는 편집 가능해야하고, 다른 사람의 프로필을 조회할 때는 ..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem There are n gas stations along a circular route, where the amount of gas at the ith station is gas[i]. You have a car with an unlimited gas tank and it costs cost[i] of gas to travel from the ith station to its next (i + 1)th station. You begin the journey with an empty tank at one of the gas stations. Given two integer arrays gas and cost, return the startin..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Koko loves to eat bananas. There are n piles of bananas, the ith pile has piles[i] bananas. The guards have gone and will come back in h hours. Koko can decide her bananas-per-hour eating speed of k. Each hour, she chooses some pile of bananas and eats k bananas from that pile. If the pile has less than k bananas, she eats all of them instead and will not eat..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given the head of a linked list, return the node where the cycle begins. If there is no cycle, return null. There is a cycle in a linked list if there is some node in the list that can be reached again by continuously following the next pointer. Internally, pos is used to denote the index of the node that tail's next pointer is connected to (0-indexed). I..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem You have a long flowerbed in which some of the plots are planted, and some are not. However, flowers cannot be planted in adjacent plots. Given an integer array flowerbed containing 0's and 1's, where 0 means empty and 1 means not empty, and an integer n, return if n new flowers can be planted in the flowerbed without violating the no-adjacent-flowers..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given a pattern and a string s, find if s follows the same pattern. Here follow means a full match, such that there is a bijection between a letter in pattern and a non-empty word in s. Example 1: Input: pattern = "abba", s = "dog cat cat dog" Output: true Example 2: Input: pattern = "abba", s = "dog cat cat fish" Output: false Example 3: Input: pattern = "aa..
본 포스팅은 백기선님의 스프링과 JPA 기반 웹 애플리케이션 개발 강의를 참고하여 작성하였습니다. 소스 코드는 여기 있습니다. (commit hash: 4213163) > git clone https://github.com/lcalmsky/spring-boot-app.git > git checkout 4213163 ℹ️ squash merge를 사용해 기존 branch를 삭제하기로 하여 앞으로는 commit hash로 포스팅 시점의 소스 코드를 공유할 예정입니다. Overview 로그인을 유지하기 위한 기능(RememberMe)을 추가합니다. Description 로그인 이후 서버에서 JSESSIONID를 발급(메모리에 저장)해주게 되고, 클라이언트에서는 그 정보를 쿠키(Cookies)에 저장합니다. 그..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem You are given an array representing a row of seats where seats[i] = 1 represents a person sitting in the ith seat, and seats[i] = 0 represents that the ith seat is empty (0-indexed). There is at least one empty seat, and at least one person sitting. Alex wants to sit in the seat such that the distance between him and the closest person to him is maximized. Re..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem Given an array of integers arr, you are initially positioned at the first index of the array. In one step you can jump from index i to index: i + 1 where: i + 1 = 0. j where: arr[i] == arr[j] and i != j. Return the minimum number of steps to reach the last index of the array. Notice that you can not jump outside of the array ..
본 포스팅은 백기선님의 스프링과 JPA 기반 웹 애플리케이션 개발 강의를 참고하여 작성하였습니다. 소스 코드는 여기 있습니다. (commit hash: 51d546d) > git clone https://github.com/lcalmsky/spring-boot-app.git > git checkout 51d546d ℹ️ squash merge를 사용해 기존 branch를 삭제하기로 하여 앞으로는 commit hash로 포스팅 시점의 소스 코드를 공유할 예정입니다. Overview 이전 포스팅에서 구현한 로그인과 로그아웃 기능을 테스트합니다. Tips 테스트를 작성하기에 앞서 이전 포스팅에서 다뤘던 내용 중 /login을 호출할 때 반드시 username과 password 파라미터를 전달해야 한다는 부분이..
본 포스팅은 백기선님의 스프링과 JPA 기반 웹 애플리케이션 개발 강의를 참고하여 작성하였습니다. 소스 코드는 여기 있습니다. (commit hash: f4673f8) > git clone https://github.com/lcalmsky/spring-boot-app.git > git checkout f4673f8 ℹ️ squash merge를 사용해 기존 branch를 삭제하기로 하여 앞으로는 commit hash로 포스팅 시점의 소스 코드를 공유할 예정입니다. Overview 로그인과 로그아웃 기능을 구현합니다. 로그인 화면을 작성하고 spring security 패키지를 활용해 로그인을 처리합니다. Implementation 먼저 SecurityConfig 클래스를 수정하여 로그인, 로그아웃 관련 ..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem There are some spherical balloons taped onto a flat wall that represents the XY-plane. The balloons are represented as a 2D integer array points where points[i] = [xstart, xend] denotes a balloon whose horizontal diameter stretches between xstart and xend. You do not know the exact y-coordinates of the balloons. Arrows can be shot up directly vertically (in t..
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem You are given the root node of a binary search tree (BST) and a value to insert into the tree. Return the root node of the BST after the insertion. It is guaranteed that the new value does not exist in the original BST. Notice that there may exist multiple valid ways for the insertion, as long as the tree remains a BST after insertion. You can return any of t..
본 포스팅은 백기선님의 스프링과 JPA 기반 웹 애플리케이션 개발 강의를 참고하여 작성하였습니다. 소스 코드는 여기 있습니다. (commit hash: 64fc2aa) > git clone https://github.com/lcalmsky/spring-boot-app.git > git checkout 64fc2aa ℹ️ squash merge를 사용해 기존 branch를 삭제하기로 하여 앞으로는 commit hash로 포스팅 시점의 소스 코드를 공유할 예정입니다. Overview 가입 이후 이메일 인증을 유도할 수 있는 안내를 추가하고, 이메일 인증 메일을 재전송 할 수 있는 기능을 구현합니다. Implementation 먼저 가입을 모두 마쳤을 때 홈 화면으로 돌아가게 되는데 그 때 이메일 인증을 안내..
- Total
- Today
- Yesterday
- spring boot jwt
- proto3
- 스프링 부트 튜토리얼
- Spring Boot Tutorial
- Java
- intellij
- Jackson
- Spring Boot JPA
- 스프링 데이터 jpa
- gRPC
- 클린 아키텍처
- spring boot app
- JPA
- 헥사고날 아키텍처
- Spring Data JPA
- Linux
- 함께 자라기 후기
- Spring Boot
- 스프링 부트
- 알고리즘
- @ManyToOne
- 스프링부트
- 함께 자라기
- spring boot application
- 스프링 부트 회원 가입
- 스프링 부트 애플리케이션
- JSON
- QueryDSL
- leetcode
- r
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |