Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Mar 22nd, 2018
78
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.24 KB
| None
|
0
0
raw
download
clone
embed
print
report
int backtracking(int res, int i){
if(i >= v.size()){
if(res <= n) {
return res;
} else{
return INT_MIN;
}
}
return max(backtracking(res+v[i], i+1),
backtracking(res, i+1));
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
✅ API Flaw Money Method
CSS | 3 min ago | 1.03 KB
This month smells like money
CSS | 8 min ago | 1.03 KB
⭐ Exploit Documentation ⭐
CSS | 14 min ago | 1.03 KB
Untitled
10 hours ago | 42.88 KB
z66is_archive.zip.txt
22 hours ago | 36.47 KB
block universe of arithmetic truth
23 hours ago | 1.91 KB
programAssembly
1 day ago | 4.98 KB
codePieces
1 day ago | 2.44 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!