Affirm | Software Engineering Apprentice, Full-Stack (Junior/New Grad) | Coding | Online Assessment

jacob_rushinskijacob_rushinski·
Interview Date:May 1, 2026Region:NA (North America)Hiring Team/Org:General Hire

Finding Integers You are given a permutation of integers from 1 to n stored in an array arr , and an integer k. The iᵗʰ greatest element of an array is the iᵗʰ element when sorted in decreasing order. For each prefix of the array of length i (where i ranges from k to n ), find the kᵗʰ greatest element. Example: n = 4 k = 2 arr = [4, 2, 1, 3] Find the 2ⁿᵈ greatest element for each prefix of size i ≥ k : i = 2, arr = [...

Sign in to view the full interview experience

Create or use your InterviewDB account to read the full Warren post and all shared details.

Sign in to continue
0

Discussion

0

Log in to post a comment or vote.

Sort by
Loading comments...

Interview Resources

InterviewDB

About InterviewDB

Crowdsourced Interview Question Bank for Job Seekers in Tech/Finance Industry

Copyright © 2026 InterviewDB. Victory is reserved for those who are willing to pay its price.