---
title: "算法,从已知数列中找出n个数,使其相加和等于要求的数值"
author: "hikelee"
date: "2015-03-09T12:10:39Z"
tags: ["算法"]
categories: ["编程语言"]
slug: "n"
draft: false
lastmod: "2015-03-09T12:10:39Z"
id: 2190611
url: "https://hikelee.iteye.com/blog/2190611"
---

比如已知有一组有序数组\[10,7,6,5,4,2], 从这组数中找出所有的数的组合,使其相加的和为16.

16=10+6

16=10+4+2

16=7+5+4