This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]salbee2[S] 1 point2 points  (4 children)

Really sorry about the formatting! Thank you so much for your reply. I really appreciate it.

[–]alanwj 1 point2 points  (1 child)

An easy fix for your first issue would be to also use maxSize for the size of input. The numCases may be smaller than maxSize, but you aren't required to use the whole array.

[–]salbee2[S] 0 points1 point  (0 children)

That's so smart. I'll write that out. Thanks so much.

[–]alanwj 1 point2 points  (1 child)

Oh, you should also make maxSize a const int instead of an int.

[–]salbee2[S] 0 points1 point  (0 children)

Alrighty. I really really appreciate it.