I am learning skiplist and don't understand how
Node *update[MAXLVL+1];
is possible since maxlvl isnt defined.
1 messages · Page 1 of 1 (latest)
I am learning skiplist and don't understand how
Node *update[MAXLVL+1];
is possible since maxlvl isnt defined.
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
It's probably for you to define.
If you scroll down a bit more you'll see they have a constructor for a SkipList object that sets MAXLVL
has this question been solved?
but MAXLVL is still a variable and as far as I understand, normal arrays cannot be created using variable integers. You would have to use a dynamic array
but its fine, i figured out my skiplist
Thank you and let us know if you have any more questions!
This thread is now set to auto-hide after an hour of inactivity