I have a list of `class Node(val name: String, val...
# announcements
d
I have a list of
class Node(val name: String, val parent: String?)
, I want to find the last node in the list that is a child of a child of a child....... of the first element. How to do this without using `var`s?
e
Could you please clarify - you need the deepest element?
d
Yes.
Such that every element before it in the list, is a parent of the next element.