Skip to content

프로그래머스 수식최대화#4

Merged
VSFe merged 1 commit intoVSFe:mainfrom
taewooyo:NTW
Jan 20, 2021
Merged

프로그래머스 수식최대화#4
VSFe merged 1 commit intoVSFe:mainfrom
taewooyo:NTW

Conversation

@taewooyo
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread NTW/수식 최대화.cpp Outdated
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

long long 벡터에 들어가면서 type conversion이 되긴 하지만, 그래도 stoll로 변환하는게 더 안전할거에요!

Comment thread NTW/수식 최대화.cpp Outdated
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vector.erase()는 O(N)입니다. 만능이 아니니 사용할 때 주의하세요!

Comment thread NTW/수식 최대화.cpp Outdated
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

글자수가 짧아서 그렇지, 이걸 내부에 사용하면 O(N^2)이기 때문에 치명적입니다...

@VSFe VSFe merged commit 5bf4a12 into VSFe:main Jan 20, 2021
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