-
-
Notifications
You must be signed in to change notification settings - Fork 195
[Gotprgmer] week 1 #624
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Gotprgmer] week 1 #624
Conversation
아! status 설정하라는 말씀봤는데 어디서 설정하는 지 몰랐습니다! ㅎㅎ |
@GotPrgmer 3기 첫 번째 PR의 주인공이 되신 것을 축하드립니다! 🥇🎊 |
감사합니다!! |
valid-palindrome/Gotprgmer.java
Outdated
// 공간복잡도 : O(n) | ||
|
||
class Solution_Gotprgmer { | ||
static StringBuilder sb; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
얘를 굳이 함수 밖에서 static으로 선언하신 이유가 있을까요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
흠... 크게 없습니다. 그런 기준이 있어야 할거같은데 자바로 알고 푼지 2주밖에 안돼서 정립이 안되어있는거 같아요.
혹시 해당 코드에서 단점은 어떤게 있을까요?
또한 추천하시는 전역 변수 선언에 대한 기준이 있을까요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
자바의 전역 변수 선언의 장단점에 대해서는 검색하시면 많이 나올 것 같아서, 저는 코딩 테스트 관점에서만 피드백을 드리겠습니다. 온라인 시험이면 크게 상관이 없지만, On-site 기술 면접에서는 이러한 질문을 받으시는 상황 자체가 지원자에게 불리하게 작용할 수 있습니다. 면접관과 프로그래밍 언어의 문법이나 기능에 대해서 질의응답을 하게 되면, 그만큼 알고리즘이나 자료구조에 대해서 대화를 나눌 수 있는 시간을 잃게 됩니다. 게다가 지원자가 명확한 답변을 주지 못한다면 아무래도 면접관은 안 좋은 인상을 받을 수 밖에 없습니다. 면접관이 애초에 이런 의구심을 갖지 않도록 전략적으로 코드를 짜는 연습을 해보시면 좋을 것 같습니다.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
전역 변수에 대해서 의식적으로 작성해보겠습니다.
왜 이렇게 썼는지에 대해 명확한 코드를 짜야겠네용. 감사합니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
답안 제출 문제
체크 리스트
In Review
로 설정해주세요.