Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- OCR
- Bull
- MySQL
- Queue
- Dinosaur
- cookie
- JavaScript
- game
- 자료구조
- dfs
- Python
- react
- Express
- nodejs
- Sequelize
- GIT
- MongoDB
- nestjs
- Nest.js
- class
- 정렬
- flask
- typeORM
- 게임
- TypeScript
- 공룡게임
- mongoose
- AWS
- jest
Archives
- Today
- Total
목록최빈값 (1)
포시코딩
[프로그래머스][Lv.0] 최빈값 구하기
문제 https://school.programmers.co.kr/learn/courses/30/lessons/120812 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 내 풀이 def solution(array): array = sorted(array, key=lambda x: -array.count(x)) answer = array[0] answer_count = array.count(answer) while answer in array: array.remove(answer) if len(array) != 0 and array.count(array[0]..
자료구조알고리즘/문제풀이
2023. 1. 11. 11:53