일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
Tags
- centuryFromYear
- codesignal
- 피보나치 수
- flask
- recursion
- 2015 봄학기 알고리즘
- 파이썬 포렌식
- data_structure
- baekjun
- codesingal
- 10953
- 수 정렬하기
- Daily Commit
- cpp
- adjacentElementsProduct
- All Longest Strings
- Numpy
- C++
- matrixElementsSum
- Python
- 2750
- Sequential Search
- shapeArea
- markdown
- almostIncreasingSequence
- 백준
- til
- 파이썬머신러닝완벽가이드
- collections.deque
- Counting cells in a blob
Archives
- Today
- Total
Introfor
[Intro] checkPalindrome
Given the string, check if it is a palindrome. 주어진 string 값이 회문구조(palindrome, 앞에서부터 읽으나, 뒤에서부터 읽으나 동일한 단어나 구)를 가지는지 판별. def checkPalindrome(s): if s == s[::-1]: return True else: return False 기존에 주어진 string s와 그 값의 역수를 비교해서 같으면 True를 반환하고, 아니면 False를 반환 여기까지 그저 맛보기에 불과했다. 이때까지 몰랐다. 부딪히고 난 뒤부터 내가 헤쳐나가야 할 고난들이 너무 많다는 걸 깨닫게 된다.
Programming_prob/Codesignal
2020. 7. 18. 14:42
[Intro] 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. 주어진 년도로 세기를 반환하는 문제. 1세기는 1년~100년까지이고, 101년부터 200년까지 2세기를 뜻한다. def centuryFromYear(year): if(year%100==0): return year//100 else: return (year//100)+1 주어진 year가 100으로 나눴을 때 나누어 떨어지면 그 몫이 1세기를 반환하고, 나누어 떨어지지 않으면 ..
Programming_prob/Codesignal
2020. 7. 18. 14:36