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.
I have a small problem:
when we generate the dynamic array, i used
seqList= [[]] * n
instead of your approach,
but we i used seqList.append(y),
every list in seqList add the element of y.
Do you know why it happened like this?
Thanks verymuch
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Dynamic Array
You are viewing a single comment's thread. Return to all comments →
I have a small problem: when we generate the dynamic array, i used seqList= [[]] * n instead of your approach, but we i used seqList.append(y), every list in seqList add the element of y. Do you know why it happened like this?
Thanks verymuch