Java Practice-It || 16.2 min || implementing, ListNodes, LinkedLists

preview_player
Показать описание
Question:
Write a method min that returns the minimum value in a list of integers. If the list is empty, it should throw a NoSuchElementException.

Assume that you are adding this method to the LinkedIntList class as defined below:

public class LinkedIntList {
private ListNode front; // null for an empty list
...
}

Problem:
Рекомендации по теме
Комментарии
Автор

is there a difference between a "ListNode" and a "Node" when you write code for the Node class?

abdelazizadies