Coder Social home page Coder Social logo

Comments (2)

rhs0266 avatar rhs0266 commented on August 16, 2024

부분 수열은 배열의 원소를 부분적으로 선택하는 것과 같습니다.

따라서, 원소마다 "부분 배열에 넣는다" vs "부분 배열에 안 넣는다" 를 선택할 수 있습니다. 결국 각 원소마다 선택하냐 마냐를 결정하는 2 가지 선택지가 있으므로 원소가 1개면 전체 경우는 2^1 가지, 2개면 2^2 가지, 3개면 222=2^3 가지, N개면 2^N 가지 가 됩니다.

원소가 20개가 주어지므로, 2^20 가지의 부분 수열이 존재할 수 있다고 생각하시면 됩니다. 이해가 가시나요?

from fastcampus.

yanJuicy avatar yanJuicy commented on August 16, 2024

넵 감사합니다~

from fastcampus.

Related Issues (20)

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.