본문 바로가기 메뉴 바로가기

Daniel's blog

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

Daniel's blog

검색하기 폼
  • 분류 전체보기 (366)
    • 경제(Economy) (15)
      • The Economist Espresso (10)
    • 기술(Tech, IT) (333)
      • 깃(Git) (1)
      • 네트워크 (Networking) (19)
      • 데이터베이스(Database) (9)
      • 리트코드(LeetCode) (38)
      • 머신 러닝(Machine Learning) (43)
      • 소프트웨어 품질 (Software Quality .. (2)
      • 안드로이드(Android) (15)
      • 알고리즘(Algorithm) (14)
      • 웹(Web) (4)
      • 인터뷰 (Interview) (3)
      • 임베디드 (Embedded) (42)
      • 자바(Java) (17)
      • 컴퓨터 그래픽스 (Computer Graphics.. (24)
      • 컴퓨터 비전 (Computer Vision) (5)
      • 파이썬(Python) (25)
      • C++ (23)
      • etc. (47)
    • 바이오(Biology) (1)
    • 서평(Book Review) (2)
    • 영어(English) (5)
    • 상식 및 기타(Common Sense and et.. (9)
  • 방명록

2023/07/12 (1)
[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
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • DICTIONARY
  • 투 포인터
  • vertex shader
  • 머신 러닝
  • machine learning
  • 파이썬
  • defaultdict
  • tf-idf
  • ml
  • C++
  • 오블완
  • 안드로이드
  • Hash Map
  • The Economist
  • I2C
  • socket programming
  • join
  • Python
  • min heap
  • 이코노미스트 에스프레소
  • 이코노미스트
  • 소켓 프로그래밍
  • Android
  • leetcode
  • 리트코드
  • Computer Graphics
  • 딕셔너리
  • The Economist Espresso
  • java
  • 티스토리챌린지
more
«   2023/07   »
일 월 화 수 목 금 토
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
글 보관함
반응형

Blog is powered by Tistory / Designed by Tistory

티스토리툴바