Citrix Interview Questions
Showing 6 questions
You are given the speed and efficiency of several engineers. Select a team of at most k engineers to maximize the team's performance, which is calculated as the sum of their speeds multiplied by the minimum efficiency within the team.
#1. Maximum Performance of a Team
You are given two strings of the same length. Determine if you can make them equal by swapping characters at even indices in the first string with characters at even indices in the second, and similarly for odd indices.
#2. Check if Strings Can be Made Equal With Operations II
You are given a rectangular grid representing farmland. Identify and return the coordinates of all rectangular groups of connected farmland cells.
#3. Find All Groups of Farmland
You are given two strings of the same length. Determine if you can make the first string equal to the second by swapping characters at even indices or swapping characters at odd indices.
#4. Check if Strings Can be Made Equal With Operations I
Design a data structure that acts as a Least Recently Used (LRU) cache. Implement methods to get and put key-value pairs, evicting the least recently used entry when the cache is full.
#5. LRU Cache
You are given a list of song durations. Find the number of pairs of songs whose total duration is divisible by 60.
#6. Pairs of Songs With Total Durations Divisible by 60