Frage im Vorstellungsgespräch bei NVIDIA

Write a function to find the largest and second largest element in an array ( without using sorting)