This commit is contained in:
Ayaan Khan
2020-07-01 03:54:33 +05:30
21 changed files with 1380 additions and 194 deletions

View File

@@ -14,7 +14,7 @@ void beadSort(int *a, int len) {
// allocating memory
unsigned char *beads = new unsigned char[max * len];
memset(beads, 0, max * len);
memset(beads, 0, static_cast<size_t>(max) * len);
// mark the beads
for (int i = 0; i < len; i++)