[LeetCode] 169. Majority Element
1150번과 매우 유사한 문제다. 다만 다른 점은 해당 문제에선 Majority Element가 반드시 있다는 가정하에 이를 반환하는 것이고, 1150은 input으로 주어진 숫자가 Majority Element가 맞는지 틀린지를 반환하는 것이다. Given an array nums of size n, return the majority element. The majority element is the element that appears more than ⌊n / 2⌋ times. You may assume that the majority element always exists in the array. Example 1: Input: nums = [3,2,3] Output: 3 Example 2: In..
기술(Tech, IT)/리트코드(LeetCode)
2023. 7. 12. 07:11
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- socket programming
- C++
- 소켓 프로그래밍
- 오블완
- java
- I2C
- defaultdict
- 머신 러닝
- tf-idf
- join
- 이코노미스트 에스프레소
- Python
- Computer Graphics
- Android
- Hash Map
- 티스토리챌린지
- 딕셔너리
- 안드로이드
- vertex shader
- 리트코드
- min heap
- ml
- 파이썬
- 투 포인터
- 이코노미스트
- The Economist
- leetcode
- machine learning
- The Economist Espresso
- DICTIONARY
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함
반응형