AndurilMachine Learning Engineer · Phone ScreenCodemia practiceFind kth largest element in linked list
Given a singly linked list and an integer k, write a function to find the kth largest element in the linked list. The function should return the kth largest value, where k is a positive integer that does not exceed the number of elements in the list. If the list contains fewer than k elements, the function should return an error or a specific value indicating that k is out of bounds.
Medium
Coding & Algorithms