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 |
Tags
- 코틀린기초
- 파이썬릿코드풀기
- 알고리즘풀기
- 파이썬알고리즘풀기
- python xor
- python Leetcode
- 파이썬릿코드
- leetcode풀이
- 파이썬알고리즘
- 파이썬 프로그래머스
- 파이썬 릿코드
- python 릿코드
- 릿코드
- 릿코드 파이썬
- 잇츠디모
- python sorted
- 릿코드풀기
- binary search
- leetcode풀기
- 알고리즘풀이
- leetcode 풀기
- python priority queue
- 릿코드풀이
- 릿코드 풀기
- 파이썬 알고리즘
- python 알고리즘
- 상가수익률계산기
- LeetCode
- 파이썬 알고리즘 풀기
- python zip_longest
Archives
- Today
- Total
목록majority vote algorithm (1)
소프트웨어에 대한 모든 것

169. Majority Element https://leetcode.com/problems/majority-element/ Majority Element - 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 문제) 솔루션1) class Solution: def majorityElement(self, nums: List[int]) -> int: half = len(nums)//2 counter = Counter(nums) for n, count in counter...
알고리즘/LeetCode
2022. 2. 22. 06:13