contains category wise problems(data structures, competitive) of popular platforms.
View the Project on GitHub mayankdutta/category-wise-problems
log with base 2
.int multipleLength(vector<int> &arr, int n) {
double ans = 0;
for (int i = 0; i < n; i++) {
ans += (double)log2(arr[i]);
}
int result = (int)(ans) + 1;
return result;
}