목록분류 전체보기 (252)
Silver Library
지금은 가능한 것. 1. 구글링 및 타인의 코드를 참고 해 가며, 원하는 기능을 내 프로젝트에 맞게 구현 해 내는 것. 2. 이리저리 필요할 때 습득 한 것을, 문서에서 재정립 하고 숙지하면서 접목 해 나가는 것. 3. 자주 쓰는 코드는 따로 포트폴리오 목록을 만들어 둬야 할 필요성을 느끼는 것. 4. stackoverflow 를 보다 보면, 기능을 구현/에러 해결 할 수 있겠다며 도모하는 것. 5. 자료구조 만큼은 상대가 말하면, 그건 배열, 그건 constructor, 그건 prototype 인데 하면서 적어도 뭔지는 알며 검색만 조금 하면 그게 어떨때, 생성자, 상속, 추상적 개념으로 쓰이는지 묘사를 해 낼 수는 있음. 지금은 아직 부족한 것. 6. 적어도 영어는 현지인들과 같이 공부하고 토론하면서..
Though this is known as not recommended...this still works perfectly IF that is for a personal project. Radical solution:
First attempt: Unless the problem provide number to its array value, use 'method' before start thinking it from low level language. class Solution: def toLowerCase(self, s: str) -> str: ans="" for i in s: ans += i.lower() return ans ''' UpperCase = str(s) LowerCase = u converter = UpperCase < LowerCase if (Converter < s): return u else: return s '''
How to improve this code more efficiently? In other words, how to be accepted in interview? int main(void) { int scores[3]; scores[0] = get_int("Score: "); scores[1] = get_int("Score: "); scores[2] = get_int("Score: "); printf("Average: %f\n", (scores[0] + scores[1] + scores[2] / 3.0); Obviously, get_int can be replaced to something else. To reduce that repetitive one. In this case, the expert s..