Skip to content

Commit

Permalink
Update SumORSubset.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
TyrionLanister authored Apr 2, 2018
1 parent f4f0af0 commit fac70c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SumORSubset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ int bitWiseOR(vector<int> &arr)
int result = 0;
vector<int> bitFreq(BIT_SIZE);
int n = arr.size();
for(int i = 0;i<arr.size();i++){
for(int i = 0;i<n;i++){
for (int k = BIT_SIZE-1; k>=0; k--)
bitFreq[k]+= getBit(arr[i],k);
}
Expand Down

0 comments on commit fac70c6

Please sign in to comment.