일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 2750
- data_structure
- flask
- shapeArea
- C++
- 파이썬머신러닝완벽가이드
- collections.deque
- matrixElementsSum
- codesingal
- baekjun
- Python
- All Longest Strings
- codesignal
- Counting cells in a blob
- 10953
- 피보나치 수
- cpp
- Daily Commit
- markdown
- 백준
- 2015 봄학기 알고리즘
- Sequential Search
- 파이썬 포렌식
- til
- centuryFromYear
- 수 정렬하기
- adjacentElementsProduct
- Numpy
- almostIncreasingSequence
- recursion
- Today
- Total
Introfor
Given an array of strings, return another array containing all of its longest strings. 주어진 문자열들에서 가장 긴 모든 문자열을 다른 배열에 포함에서 반환해라. def allLongestStrings(array): return [i for i in array if len(i)==len(max(array, key=len))] array 각각의 요소에 대해 array의 최댓값과 비교해서 같다면 리스트 요소에 넣고 리턴한다.
After becoming famous, the CodeBots decided to move into a new building together. Each of the rooms has a different cost, and some of them are free, but there's a rumour that all the free rooms are haunted! Since the CodeBots are quite superstitious, they refuse to stay in any of the free rooms, or any of the rooms below any of the free rooms. Given matrix, a rectangular matrix of integers, wher..
Given a sequence of integers as an array, determine whether it is possible to obtain a strictly increasing sequence by removing no more than one element from the array. Note: sequence a0, a1, ..., an is considered to be a strictly increasing if a0 < a1 < ... < an. Sequence containing only one element is also considered to be strictly increasing. 일련의 증가하는 시퀀스를 가지는가를 판별하는 문제다. 도저히 알고리즘이 생각나지 않아 타인..