klmhyeonwoo / -algorithm Goto Github PK
View Code? Open in Web Editor NEW건강하고 우아한 알고리즘을 학습해요 👋🏻
건강하고 우아한 알고리즘을 학습해요 👋🏻
제곧내-
소프트웨어 마에스트로 대비 기본 문제 풀이
[프로그래머스] 카펫
가로 길이는 세로 길이와 같거나, 세로 길이보다 길다 width >= height
갈색 격자의 수 brown은 8이상 5000 이하인 자연수 8<= brown <= 5000
노란색 격자의 수 yellow는 1이상 2,000,000 이하인 자연수 1 <= yellow <= 2,000,000
def solution(brown, yellow):
total = brown + yellow
for row in range (1, total + 1):
if (total % row) == 0:
column = total // row
# 왜 4를 더해줄까?
# 2 * row + 2 * column을 하게 되면 약 끝 모서리 쪽이 겹치게 되는데 이 네 부분을 +4를 해줘야 같다.
if (column >= row) and (2 * row + 2 * column) == brown + 4:
return [column, row]
테스트 케이스는 맞는데 히든 케이스가 틀림, 재풀이 필요
이 집 이제 안합니돠-
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.