We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 575ce6d commit 7358bbaCopy full SHA for 7358bba
src/main/java/com/thealgorithms/datastructures/heaps/MaxHeap.java
@@ -14,15 +14,15 @@
14
* 3. Root contains the maximum element
15
*
16
* Example usage:
17
- * ```java
+ * <pre>
18
* List<HeapElement> elements = Arrays.asList(
19
* new HeapElement(5, "Five"),
20
* new HeapElement(2, "Two")
21
* );
22
* MaxHeap heap = new MaxHeap(elements);
23
* heap.insertElement(new HeapElement(7, "Seven"));
24
* HeapElement max = heap.getElement(); // Returns and removes the maximum element
25
- * ```
+ * </pre>
26
27
* @author Nicolas Renard
28
*/
0 commit comments