본문 바로가기

mjk study log

검색하기
mjk study log
프로필사진 mjk-

  • 분류 전체보기 (42)
    • Leetcode (26)
    • HackerRank (7)
    • OS (2)
    • Linux (2)
    • pwnable.kr (1)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/04   »
일 월 화 수 목 금 토
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
Tags
  • pythonanywhere
  • kisa #정보보안기사 #자격증
  • Website
  • security
  • 정보보안기사필기
  • flask
  • 웹사이트만들기
  • 웹사이트배포
  • 웹사이트
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록2025/04/08 (1)

mjk study log

[Leetcode] 3396. Minimum Number of Operations to Make Elements in Array Distinct

문제You are given an integer array nums. You need to ensure that the elements in the array are distinct. To achieve this, you can perform the following operation any number of times:Remove 3 elements from the beginning of the array. If the array has fewer than 3 elements, remove all remaining elements.Note that an empty array is considered to have distinct elements. Return the minimum number of op..

Leetcode 2025. 4. 8. 20:31
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바