Coder Social home page Coder Social logo

codingtest_study's Introduction


🎨 SNS & Portfolio 🎨


InHee's GitHub Contributor stats

codingtest_study's People

Contributors

inh2613 avatar sim748 avatar yejin325 avatar

Watchers

 avatar

codingtest_study's Issues

전깃쀄 ..

μ •λ‹΅ μ½”λ“œλ“€ 보면 λ¦¬μŠ€νŠΈμ— [Aμœ„μΉ˜, Bμœ„μΉ˜] appendν•˜κ³  μ •λ ¬ν•΄μ„œ ν’€λ˜λ°

import sys
input = sys.stdin.readline

n = int(input())
lines = [0] * 500
dp = [1] * 500

for _ in range(n):
start, end = map(int, input().split())
lines[start-1] = end-1

for i in range(500):
for j in range(i):
if lines[i] > lines[j]:
dp[i] = max(dp[i], dp[j]+1)

print(n-max(dp))

μ΄λ ‡κ²Œ lines 배열을 A μ „λ΄‡λŒ€λ‘œ μƒκ°ν•˜κ³  B μ „λ΄‡λŒ€ μœ„μΉ˜ 값을 λŒ€μž…ν•˜λ©΄ μžλ™μœΌλ‘œ 정렬이 λ˜μ§€ μ•Šλ‚˜ ..? μ—‰μ—‰
μ™œ ν‹€λ Έλ‹€κ³  ν• κΉŒ.. 차이가 뭔데 !

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.