Showing 3 of 32 questions
Reverse a linked list in groups of k nodes. If the number of nodes is not a multiple of k, leave the remaining nodes at the end as is.
#1. Reverse Nodes in k-Group
You're given resources and machine blueprints. Determine the maximum number of identical alloys you can create by optimally distributing your resources across the machines.
#2. Maximum Number of Alloys
You are given an array and two numbers, minK and maxK. Find the number of subarrays where minK and maxK are the minimum and maximum values within that subarray, respectively.
#3. Count Subarrays With Fixed Bounds