Ask Question
22 October, 05:58

When implementing a heap we should make sure that the client cannot change a key once it has been added to the heap. Prof. Sedgewick showed four good practices when implementing an immutable data structure in Java.

Give an example that is NOT a recommended practice?

+5
Answers (1)
  1. 22 October, 06:14
    0
    Create defensive copies of immutable instance fields.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “When implementing a heap we should make sure that the client cannot change a key once it has been added to the heap. Prof. Sedgewick showed ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers