AirbnbSoftware Engineer · Technical ScreenCodemia practiceCount kth largest element in linked list
Given a singly linked list, write a function to find and return the kth largest element in the list. The function should handle cases where k is greater than the number of elements in the list by returning an appropriate value (e.g., None). The input will be the head of the linked list and an integer k, and the output should be the kth largest element as an integer.
Medium
Coding & Algorithms