Skip to content

Conversation

@Legitgoons
Copy link
Collaborator

문제

Type Info
Time Complexity O(n)
Space Complexity O(1)
Algorithm 슬라이딩 윈도우
Data Structure

Constraints

  • n == nums.length
  • 1<= k <= n <= 10^5
  • -10^4 <= nums[i] <= 10^4

Edge Case

풀이

  • 브루트 포스로 접근할 경우
  • 2중 For문을 사용해야하기 때문에 (k * n)
  • 최대 10^10까지 나옴
  • 슬라이딩 윈도우로 o(n)까지 가능

어려웠던 점

알게된 점

@github-actions github-actions bot merged commit e83aafb into main Jan 5, 2025
2 checks passed
@BangDori BangDori deleted the legitgoons/maximum-average-subarray-i branch January 10, 2025 01:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants