전체 글(331)
-
[Python 문제풀이] 4일차
Day_4 Q9. allLongestStrings Given an array of strings, return another array containing all of its longest strings. def allLongestStrings(inputArray): maxLen = 0 for word in inputArray: if maxLen < len(word): maxLen = len(word) maxLenList = list() for word in inputArray: if len(word) == maxLen: maxLenList.append(word) return maxLenList 오늘부턴 코드 짜는 과정도 메모해둘 수 있으면 메모해서 올리자 # 문제 파악 # Given an array o..
2020.07.12 -
[Python 문제풀이] 3일차
Day_3 Q8. matrixElementSum After becoming famous, the CodeBots decided to move into a new building together. Each of the rooms has a different cost, and some of them are free, but there's a rumour that all the free rooms are haunted! Since the CodeBots are quite superstitious, they refuse to stay in any of the free rooms, or any of the rooms below any of the free rooms. Given matrix, a recta..
2020.07.11 -
[200710] 오늘의 헬스
오늘은 부득이한 사정(이라는 핑계하에) 못 갔던 헬스장에서 운동을 했다! 늘 하는 것처럼 등이랑 어깨운동을 했다. 슬슬 자전거도 다시 타서 하체 운동 대신해야하는데, 자전거 타는 텀이 너무 길어졌다! 일요일에는 자전거를 타러 가야겠다. 어시스티드 풀업 - 50kg 어시스트 10개 3세트 숄더프레스 머신 - 전면그립 25kg 10개 1세트 - 전면그립 30kg 10개 3세트 - 전측면그립 30kg 10개 3세트 저번에 사진으로 올렸던 이름 모를 등운동 - 바 + 10kg, 아래발판 + 윗그립, 10개 2세트 - 바 + 15kg, 아래발판 + 윗그립, 10개 2세트 -- 발판이랑 그립을 적는 이유: 등에 자극이 들어가는 포인트가 달라서! 디클라인 상태에서 크런치 - 20개 3세트
2020.07.10 -
[Python 문제풀이] 2일차
Day_2 Intro. Q6. Make Array Consecutive 2 Ratiorg got statues of different sizes as a present from CodeMaster for his birthday, each statue having an non-negative integer size. Since he likes to make things perfect, he wants to arrange them from smallest to largest so that each statue will be bigger than the previous one exactly by 1. He may need some additional statues to be able to accomplish ..
2020.07.10 -
[Python 문제풀이] 1일차
Day_1 https://app.codesignal.com/arcade Intro. Q1. add Write a function that returns the sum of two numbers. def add(param1, param2): return param1 + param2 Q2. centuryFromYear Given a year, return the century it is in. The first century spans from the year 1 up to and including the year 100, the second - from the year 101 up to and including the year 200, etc. def centuryFromYear(year): if year..
2020.07.09 -
파이썬 문제풀이 했던 것 업로드
작년 말에 면접 준비해보겠다고 파이썬 문제풀이에 도전한 적이 있다. 1일 1문제 였던거같은데 졸업 준비랑 겹쳐서 도중에 그만두긴 했지만, 남아있던 자료들 보관할 겸 블로그에 업로드 해야겠다! 문제 풀이를 위해서 Code signal이라는 사이트를 이용했다!
2020.07.09