preparation for Coding_test
dockerisfish / coding_test Goto Github PK
View Code? Open in Web Editor NEWpreparation for Coding_test
preparation for Coding_test
2차원 리스트에 딕셔너리를 넣는 방식으로 하니까 훨씬 빠르네요
또 잊어버릴까봐 적어봐요
key에는 숫자를 넣고, value에는 이 숫자의 개수
ex)
[3, 3, 3, 4, 4, 4, 5, 5]
-> {3: 2, 4:3, 5: 2}
데크의 popleft()가 list의 pop(0) 처럼 O(N)이 아닌 O(1)인 이유
`for i in range(10):
if i <= 5:
continue
if i == 6:
pass
if i >= 7:
print(i)
if i == 8:
break`
Python 활용해서 십진수를 이진수로 바꾸는 방법이 뭐가 있을까요?
백준 4963번 문제를 dfs algorithm으로 풀면서 IDE에서는 출력이 잘 되는데 제출 할때마다 런타임 에러가 발생했다.
import sys
sys.setrecursionlimit(2500)
해결 방법: 파이썬 sys 라이브러리의 setrecursionlimit 메소드를 사용하여 재귀 깊이 조절
문제:https://www.acmicpc.net/problem/4963
해결법: https://velog.io/@jisu0807/TIL-%ED%8C%8C%EC%9D%B4%EC%8D%AC%EC%9D%98-%EC%9E%AC%EA%B7%80-%EA%B9%8A%EC%9D%B4-%EC%A0%9C%ED%95%9C-%EB%B3%80%EA%B2%BD
어떤 일을 하는 순서를 찾는 알고리즘
--> 방향 그래프에 존재하는 각 정점들의 선행 순서를 위배하지 않으면서 모든 정점을 나열하는 것
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.