일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- C++
- 정보처리산업기사
- 스프링
- 자바
- java
- 데이터베이스
- 회고
- SQL
- 공부일지
- CJ UNIT
- 1과목
- 프로그래머스
- softeer
- BFS
- SW봉사
- kotlin
- 백준
- Spring
- 코딩봉사
- 코딩교육봉사
- python
- MYSQL
- 백준알고리즘
- 소프티어
- 백준 알고리즘
- 문제풀이
- 코틀린
- programmers
- 파이썬
- 알고리즘
- Today
- Total
목록Algorithm/codility (2)
JIE0025

https://app.codility.com/programmers/lessons/16-greedy_algorithms/ 16. Greedy algorithms lesson - Learn to Code - Codility Tie adjacent ropes to achieve the maximum number of ropes of length >= K. app.codility.com There are N ropes numbered from 0 to N − 1, whose lengths are given in an array A, lying on the floor in a line. For each I (0 ≤ I < N), the length of rope I on the line is A[I]. # 0~ ..
An array A consisting of N different integers is given. # N개의 다른 정수로 구성된 배열 A The array contains integers in the range [1..(N + 1)], which means that exactly one element is missing. Your goal is to find that missing element. #배열은 1부터 N+1의 값을 포함한다. (1요소만 없음) #목표는 없는 요소를 찾는것! Write a function: def solution(A) that, given an array A, returns the value of the missing element. #A가 주어졌을 떄 없어진 값을 반환하라...