ThreeSnakes Dev Blog

  • 홈

array 3

[LeetCode] 1207. Unique Number of Occurrences

1207. Unique Number of Occurrences Given an array of integers arr, return true if the number of occurrences of each value in the array is unique or false otherwise. Example 1: Input: arr = [1,2,2,1,1,3] Output: true Explanation: The value 1 has 3 occurrences, 2 has 2 and 3 has 1. No two values have the same number of occurrences. Example 2: Input: arr = [1,2] Output: false Example 3: Input: arr ..

👹 Algorithm 2023.06.29

[LeetCode] 2215. Find the Difference of Two Arrays

2215. Find the Difference of Two Arrays Given two 0-indexed integer arrays nums1 and nums2, return a list answer of size 2 where: answer[0] is a list of all distinct integers in nums1 which are not present in nums2. answer[1] is a list of all distinct integers in nums2 which are not present in nums1. Note that the integers in the lists may be returned in any order. Example 1: Input: nums1 = [1,2..

👹 Algorithm 2023.06.27

[LeetCode] 724. Find Pivot Index

724. Find Pivot Index Given an array of integers nums, calculate the pivot index of this array. The pivot index is the index where the sum of all the numbers strictly to the left of the index is equal to the sum of all the numbers strictly to the index's right. If the index is on the left edge of the array, then the left sum is 0 because there are no elements to the left. This also applies to th..

👹 Algorithm 2023.06.27
이전
1
다음
더보기
프로필사진

개발, 학습,일상, 회고를 위한 Blog

방문자수Total

  • Today :
  • Yesterday :
  • 😄 전체 (8)
    • 📓 Jornal (2)
    • 👻Weekly Journal (1)
    • 👹 Algorithm (5)

최근글과 인기글

  • 최근글
  • 인기글

Tag

String, 기록, Simulation, 코딩테스트, array, 일상, Algorithm, leetcode, Stack, Journal, hash table, Prefix sum, 주간 회고, 백스쿼트, W26 회고,

최근댓글

Calendar

«   2025/10   »
일 월 화 수 목 금 토
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
GitHub LinkedIn

Copyright © Kakao Corp. All rights reserved.

티스토리툴바