169. Majority Element
소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem 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: Input: nums = [2,2,1,1,1,2,2] Output: 2 Constraints: n == nums.length 1
Algorithm/LeetCode
2022. 2. 28. 10:30
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- QueryDSL
- JPA
- Linux
- 클린 아키텍처
- intellij
- 스프링 데이터 jpa
- 스프링 부트
- 알고리즘
- 함께 자라기
- Java
- leetcode
- 스프링 부트 회원 가입
- spring boot application
- 스프링 부트 튜토리얼
- gRPC
- 스프링 부트 애플리케이션
- proto3
- r
- @ManyToOne
- 함께 자라기 후기
- spring boot jwt
- Spring Boot Tutorial
- Spring Boot
- Spring Data JPA
- Jackson
- 헥사고날 아키텍처
- Spring Boot JPA
- 스프링부트
- spring boot app
- JSON
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
글 보관함
