package
0.0.1
Repository: https://github.com/oldthreefeng/algo.git
Documentation: pkg.go.dev

# README

	"love",
	"hate",
	"yes"
	}
输出: ["like", "love", "hate"]

### **Challenge**

遍历两次的办法很容易想到,如果只遍历一次你有没有什么好办法?
[传送门](./133-longestword.go)
## 135-combinationsum

### **Description**

中文English

给定一个候选数字的集合 `candidates` 和一个目标值 `target`. 找到 `candidates` 中所有的和为 `target` 的组合.

在同一个组合中, `candidates` 中的某个数字不限次数地出现.

所有数值 (包括 `target` ) 都是正整数.返回的每一个组合内的数字必须是非降序的.返回的所有组合之间可以是任意顺序.解集不能包含重复的组合.


### **Example**

**样例 1:**

输入: candidates = [2, 3, 6, 7], target = 7 输出: [[7], [2, 2, 3]]


**样例 2:**

输入: candidates = [1], target = 3 输出: [[1, 1, 1]]

[传送门](./135-combinationsum.go)
## 1324-countprimes

```cgo
计算小于非负数n的质数的个数。

Example
样例 1

输入: n = 2
输出: 0
样例 2

输入: n = 4
输出: 2
解析:2, 3 是素数

传送门