본문 바로가기

전체 글

(169)
[SpringBoot] 경매사이트 만들기 - Apache Tiles 적용 전체적인 화면 레이아웃 화면 구성은 header, body, footer 부분으로 나눌 생각이기 때문에 ApachTiles를 적용시켰다. header와 footer는 모든 jsp 페이지에서 공통적으로 들어가는 부분이 구현될꺼고, body 부분은 각 페이지마다 다르게 구현될 예정이다. 결론적으로 간단하게 정리하면 아래와 같다. 정리 Header : 각종 메뉴, 사이트 로고, 로그인 및 회원가입, 검색을 구현할 예정. Body: 각 화면에 따라 다르게 구성해서 구현. footer: 문의 전화번호, 개인적인 프로필 등을 넣어줄 예정 타일즈 적용하기 1. 타일즈 적용을 위해 먼저 gradle에 의존성을 추가 시켜줘야한다. https://mvnrepository.com/artifact/org.apache.tile..
[JAVA] BOJ(백준) - 드래곤 커브 - 15685 문제내용 https://www.acmicpc.net/problem/15685 15685번: 드래곤 커브 첫째 줄에 드래곤 커브의 개수 N(1 ≤ N ≤ 20)이 주어진다. 둘째 줄부터 N개의 줄에는 드래곤 커브의 정보가 주어진다. 드래곤 커브의 정보는 네 정수 x, y, d, g로 이루어져 있다. x와 y는 드래곤 커 www.acmicpc.net 드래곤 커브는 다음과 같은 세 가지 속성으로 이루어져 있으며, 이차원 좌표 평면 위에서 정의된다. 좌표 평면의 x축은 → 방향, y축은 ↓ 방향이다. 시작 점 시작 방향 세대 0세대 드래곤 커브는 아래 그림과 같은 길이가 1인 선분이다. 아래 그림은 (0, 0)에서 시작하고, 시작 방향은 오른쪽인 0세대 드래곤 커브이다. 1세대 드래곤 커브는 0세대 드래곤 커브..
[JAVA] LeetCode - 3Sum Closest - 16 문제내용 https://leetcode.com/problems/3sum-closest/ 3Sum Closest - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com Given an integer array nums of length n and an integer target, find three integers in nums such that the sum is closest to target. Return the sum of the three integers. Y..
[JAVA] 프로그래머스 - 불량 사용자 - kakao(Lv3) 문제내용 https://programmers.co.kr/learn/courses/30/lessons/64064 코딩테스트 연습 - 불량 사용자 개발팀 내에서 이벤트 개발을 담당하고 있는 "무지"는 최근 진행된 카카오이모티콘 이벤트에 비정상적인 방법으로 당첨을 시도한 응모자들을 발견하였습니다. 이런 응모자들을 따로 모아 불량 programmers.co.kr 개발팀 내에서 이벤트 개발을 담당하고 있는 "무지"는 최근 진행된 카카오이모티콘 이벤트에 비정상적인 방법으로 당첨을 시도한 응모자들을 발견하였습니다. 이런 응모자들을 따로 모아 불량 사용자라는 이름으로 목록을 만들어서 당첨 처리 시 제외하도록 이벤트 당첨자 담당자인 "프로도" 에게 전달하려고 합니다. 이 때 개인정보 보호을 위해 사용자 아이디 중 일부 ..
[JAVA] LeetCode - Container With Most Water - 11 문제내용 https://leetcode.com/problems/container-with-most-water/ Container With Most Water - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com You are given an integer array height of length n. There are n vertical lines drawn such that the two endpoints of the ith line are (i, 0) and (..
[JAVA] LeetCode - Zigzag Conversion - 6 문제내용 https://leetcode.com/problems/zigzag-conversion/ Zigzag Conversion - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better..
[JAVA] LeetCode - Trim a Binary Search Tree - 669 문제내용 https://leetcode.com/problems/trim-a-binary-search-tree/ Trim a Binary Search Tree - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com Given the root of a binary search tree and the lowest and highest boundaries as low and high, trim the tree so that all its elements lies in [lo..
[JAVA] LeetCode - Spiral Matrix II - 59 문제내용 https://leetcode.com/problems/spiral-matrix-ii/ Spiral Matrix II - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com Given a positive integer n, generate an n x n matrix filled with elements from 1 to n2 in spiral order. Example 1: Input: n = 3 Output: [[1,2,3],[8,9,4],[7,6,5]] ..