Your solution has been submitted!

(You can close this window)

Coding tests are not compatible on small screen devices like mobiles, please switch to a Desktop or Laptop.
You have 5 minutes to solve this problem.

This session will automatically time-out after 5 minutes and can no longer be accessed, start immediately.

Problem: Maximum and Minimum K elements in Tuple
Language: python
Description:

Extract only extreme K elements, i.e maximum and minimum K elements in Tuple.

Instructions:

Input : test_tup = (3, 7, 1, 18, 9), k = 2
Output : (3, 1, 9, 18)
Output : (1, 3)

// You can start typing your code here