We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
The first double pointer declaration is the most important, it declares an 'array of arrays', or an 'array of pointers'. Its size is determined by the number of sequences. Once that is setup, each sequence can be populated with another newly declared array. If this doesn't help at all, let me know and I 'll breakdown one line of code.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Variable Sized Arrays
You are viewing a single comment's thread. Return to all comments →
since I wrote similar code, I'll explain..
The first double pointer declaration is the most important, it declares an 'array of arrays', or an 'array of pointers'. Its size is determined by the number of sequences. Once that is setup, each sequence can be populated with another newly declared array. If this doesn't help at all, let me know and I 'll breakdown one line of code.