Giter VIP home page Giter VIP logo

coding_test's Introduction

Coding_Test

preparation for Coding_test

coding_test's People

Contributors

dockerisfish avatar

Stargazers

 avatar

Watchers

 avatar

coding_test's Issues

Python3.8 continue, pass, break 의 차이!!

`for i in range(10):

if i <= 5:
    continue

if i == 6:        
    pass

if i >= 7:
    print(i)

if i == 8:
    break`
  1. continue for 문 첫 번째로 다시 돌아간다
  2. Pass 다른 if 문으로 돌아간다
  3. break for 문을 나간다.

2022.03.04 질문

Python 활용해서 십진수를 이진수로 바꾸는 방법이 뭐가 있을까요?

TIL-파이썬 재귀 깊이 제한

백준 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

위상 정렬

어떤 일을 하는 순서를 찾는 알고리즘
--> 방향 그래프에 존재하는 각 정점들의 선행 순서를 위배하지 않으면서 모든 정점을 나열하는 것

  • 하나의 방향 그래프에는 여러 위상 정렬이 가능하다
  • 위상 정렬의 과정에서 선택되는 정점의 순서를 위상 순서라고 한다
  • 위상 정렬의 과정에서 그래프에 남아 있는 정점 중에 진입 차수가 0 인 정점이 없다면, 위상 정렬 알고리즘은 중단되고 이러한 그래프로 표현된 문제는 실행이 불가능한 문제가 된다.

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.