| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- 서버에도커설치
- 스프링이미지업로드
- 스프링부트팔로잉
- 인스타클론
- 스프링구독
- 파이썬sort
- 출처 코딩셰프
- 스프링부트
- 멀티폼
- centos도커설치
- 스프링사진업로드
- vm도커설치하는법
- 스프링부트팔로우취소
- 출처 노마드코더
- 스프링부트구독취소
- 우분투도커설치
- 스프링부트사진올리기
- 스프링사진
- WAS웹서버
- 출처 메타코딩
- 출처 따배도
- 스프링익셉션처리
- dockerinstall
- 도커설치하는법
- 스프링부트api
- 스프링부트중복예외처리
- 스프링부트서버에사진전송
- ssh도커설치
- springboot_exception_handler
- 출처 문어박사
- Today
- Total
목록Algorithm (66)
MakerHyeon
https://www.acmicpc.net/problem/7576 7576번: 토마토 첫 줄에는 상자의 크기를 나타내는 두 정수 M,N이 주어진다. M은 상자의 가로 칸의 수, N은 상자의 세로 칸의 수를 나타낸다. 단, 2 ≤ M,N ≤ 1,000 이다. 둘째 줄부터는 하나의 상자에 저장된 토마토 www.acmicpc.net Python으로 bfs탐색할땐 deque! pop은 O(n)의 시간복잡도를 가지지만 popleft는 O(1)의 시간복잡도를 가진다. 상하좌우 좌표탐색 dx, dy = [1,-1,0,0],[0,0,1,-1] . 외우자!!! SOLUTION CODE # PYTHON import sys from collections import deque input = sys.stdin.readline..
https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/ Two Sum II - Input Array Is Sorted - LeetCode Can you solve this real interview question? Two Sum II - Input Array Is Sorted - Given a 1-indexed array of integers numbers that is already sorted in non-decreasing order, find two numbers such that they add up to a specific target number. Let these two n leetcode.com SOLUTION CODE # PY..
https://leetcode.com/problems/design-linked-list/description/ Design Linked List - LeetCode Can you solve this real interview question? Design Linked List - Design your implementation of the linked list. You can choose to use a singly or doubly linked list. A node in a singly linked list should have two attributes: val and next. val is the value leetcode.com SOLUTION CODE # PYTHON class ListNode..
https://leetcode.com/problems/valid-palindrome/description/ Valid Palindrome - LeetCode Can you solve this real interview question? Valid Palindrome - A phrase is a palindrome if, after converting all uppercase letters into lowercase letters and removing all non-alphanumeric characters, it reads the same forward and backward. Alphanumeric cha leetcode.com ord(문자) 하나의 문자를 인자로 받고 해당 문자에 해당하는 유니코드 ..
https://leetcode.com/problems/longest-consecutive-sequence/description/ Longest Consecutive Sequence - LeetCode Can you solve this real interview question? Longest Consecutive Sequence - Given an unsorted array of integers nums, return the length of the longest consecutive elements sequence. You must write an algorithm that runs in O(n) time. Example 1: Input: leetcode.com 'You must write an alg..
https://www.acmicpc.net/problem/10093 10093번: 숫자 두 양의 정수가 주어졌을 때, 두 수 사이에 있는 정수를 모두 출력하는 프로그램을 작성하시오. www.acmicpc.net 문제를 풀면서 실수했던것 몇가지. 1. 첫째 줄 까먹고 출력안함->문제를 잘 읽자!!! 2. 해당문제 100점을 위해서는 long long 선언을 해주어야한다! int범위는 대략 10^9승까지!!!! long 형은 대략 10^18승까지 표현 가능하다. 3. 특별 케이스는 항상 떠올리자. (4,4) (4,5) 처럼 숫자가 같거나 1차이 나면 0을 출력하고 2번째줄은 출력하지않는다. SOLUTION CODE # PYTHON a,b = map(int, input().split()) n1=min(a,b)..
https://www.acmicpc.net/problem/2587 2587번: 대표값2 어떤 수들이 있을 때, 그 수들을 대표하는 값으로 가장 흔하게 쓰이는 것은 평균이다. 평균은 주어진 모든 수의 합을 수의 개수로 나눈 것이다. 예를 들어 10, 40, 30, 60, 30의 평균은 (10 + 40 + 30 + 60 + www.acmicpc.net SOLUTION CODE # PYTHON li = [int(input()) for _ in range(5)] li.sort() print(int(sum(li)/5)) print(li[2]) # C++ #include using namespace std; int num[5], sum; int main() { ios::sync_with_stdio(0); cin.t..
https://www.acmicpc.net/problem/2576 2576번: 홀수 7개의 자연수가 주어질 때, 이들 중 홀수인 자연수들을 모두 골라 그 합을 구하고, 고른 홀수들 중 최솟값을 찾는 프로그램을 작성하시오. 예를 들어, 7개의 자연수 12, 77, 38, 41, 53, 92, 85가 주어지 www.acmicpc.net SOLUTION CODE # PYTHON li=[int(input()) for _ in range(7)] sum=0 min=0 for n in li: if n%2!=0: if min==0: min=n sum+=n if min>n: min=n if sum==0: print(-1) else: print(sum) print(min) res = [] for _ in range(7):..