#get top elements of a list using stream
1 messages · Page 1 of 1 (latest)
⌛ This post has been reserved for your question.
Hey @edgy mica! Please use
/closeor theClose Postbutton above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
Your example removes nodes that are their own descendants, which I imagine cannot happen
dont quite get what you mean. anyways heres better explanation.
ex: the given nodes are the circled ones of both colors. the final list should only contain the blue ones.
the red node is removed because it is the descendent of another given node