강의

멘토링

커뮤니티

Inflearn Community Q&A

somlh0381's profile image
somlh0381

asked

Introduction to Java Algorithm Problem Solving: Coding Test Preparation

3. Types of Sales (Hash, Sliding Window)

Time Limit Exceeded 뜨는 이유

Written on

·

2.3K

0

Time Limit Exceeded 

해당 에러가 왜 발생하는 걸까요 ..?

TimeLimitExceeded에러java코테 준비 같이 해요!

Answer 1

1

codingcamp님의 프로필 이미지
codingcamp
Instructor

안녕하세요^^

시간초과입니다. 아마 O(N)으로 짜야 하는데

O(N^2)으로 코드를 구현하신게 아닌가 싶습니다.

somlh0381's profile image
somlh0381

asked

Ask a question