45namespace partitionProblem {
54bool findPartiion(
const std::vector<uint64_t> &arr, uint64_t size) {
55 uint64_t sum = std::accumulate(arr.begin(), arr.end(),
61 std::vector<bool> part;
65 for (uint64_t it = 0; it <= sum / 2; ++it) {
66 part.push_back(
false);
70 for (uint64_t it = 0; it < size; ++it) {
72 for (uint64_t it2 = sum / 2; it2 >= arr[it];
75 if (part[it2 - arr[it]] == 1 || it2 == arr[it]) {
90 std::vector<uint64_t> arr = {{1, 3, 3, 2, 3, 2}};