
Question 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. size가 n인 배열이 주어질 때, majority 한 원소를 return 하라. majority 한 원소란, 전체 배열에서 n/2 이상 등장한 원소를 뜻한다. 배열 안에 majority 원소가 항상 있다고 생각해도 좋다. 제약사항 n == nums.length 1
IT/Problem Solving
2022. 8. 16. 21:15
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 속초
- interview question
- DP
- PS
- 러스트 기초
- Problem Solving
- rust
- LeetCode
- C++
- 기술면접
- 러스트 입문
- coding interview
- 솔직후기
- 인터뷰
- 맛집
- 알고리즘
- algorithm
- 반드시 알아야 할 자료구조
- 트리
- 리트코드
- 코딩인터뷰
- 자료구조
- 러스트
- Interview
- 러스트 배우기
- ProblemSolving
- 속초 맛집
- Medium
- 내돈내산
- Tree
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함