Giter Club home page Giter Club logo

findcombination's Introduction

FindCombination

毛孩市集應徵試題

問題描述

  1. 給定不重複正整數 m 種類型 m1 m2 m3 ...,每種類型對應正整數數量為 n1 n2 n3 ...,需要取出正整數 p 個任意類型,請列出所有!!取法!!。
  2. 上述問題舉例:Apple 有三個、Banana 有兩個、Citron 有四個,要取出三個,則取法有 Apple x 3、Apple x 2 + Banana x 1、Apple x 2 + Citron x 1、Apple x 1 + Banana x 2、Apple x 1 + Banana x 1 + Citron x 1、等等。
  3. 以上述例子 p 為 3,m1 為 Apple,n1 為 3,m2 為 Banana,n2 為 2,m3 為 Citron,n3 為 4。
  4. 另外,取法是無順序的,舉例:Apple x 2 + Banana x 1 和 Banana x 1 + Apple x 2 算是同一種取法

findcombination's People

Contributors

bingze03 avatar

Watchers

James Cloos avatar  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.