Reputation: 0 Apprentice
- Active Posts:
- 19 (0.02 per day)
- 27-October 11
- Profile Views:
- Last Active:
- Apr 29 2014 05:40 PM
- Dream Kudos:
Posts I've Made
Posted 29 Apr 2014there is more than one question, and i might have more as i go along doing it
Posted 5 Oct 2012figured it out, lock pl0x
Posted 4 Oct 2012maybe someone would be kind enough to provide an algorithm/pseudocode on the correct way of turning an unsorted array into a heap? please? i don't understand where i have gone wrong...
Posted 4 Oct 2012
QuoteNope! That's probably not going to happen.anyone care to provide a working implementation so i can see which assumption used in my approach is wrong?
Let's instead try to fix your code. What is the output you're getting, what is the output you should be getting?
Nothing is changed for an array with an odd number of items for example . I should be getting a heap where the first item is smaller than the next two items, etc.
- Member Title:
- New D.I.C Head
- Age Unknown
- Birthday Unknown
neojiphre hasn't added any friends yet.