Giter Club home page Giter Club logo

atdd-subway-path's Introduction

지하철 노선도 미션

ATDD 강의 실습을 위한 지하철 노선도 애플리케이션

기능 구현 목록

  • 구간을 추가한다
    • 구간은 맨앞, 중간, 맨끝에 추가할 수 있다.
    • 상,하행이 중복된 구간은 추가할 수 없다.
    • 상행 혹은 하행 둘 중 하나는 포함되어야 한다.
    • 구간 중간에 추가된 경우 추가된 역 길이로 수정된다.
    • 구간 중간에 추가된 경우 기존 구간보다 길이가 크거나 같을 수 없다.
  • 구간을 삭제한다
    • 하나 남은 구간의 상행, 하행 종점은 삭제할 수 없다.
    • 노선의 중간 구간이 삭제되면 삭제될 역과 연결된 상, 하행 구간의 길이의 합으로 재배치된다.
    • 노선에 존재하지 않는 구간은 삭제할 수 없다.
  • 경로를 조회한다
    • 출발역 id, 도착역 id를 입력하면 최단 구간 목록과 구간의 거리를 응답한다.
    • 경로 조회 시, 출발역과 도착역이 같을 수 없다.
    • 경로 조회 시, 존재하지 않는 역인 경우 조회를 실패한다.
    • 경로 조회 시, 출발역에서 도착역까지 연결되지 않은 경우 경로 조회를 실패한다.

atdd-subway-path's People

Contributors

boorownie avatar doorisopen avatar

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.