Showing 3 of 5 questions
Identify critical points in a linked list (local minima and maxima). Find the minimum and maximum distances between consecutive critical points.
#1. Find the Minimum and Maximum Number of Nodes Between Critical Points
The problem asks you to count pairs of numbers in an array that are 'almost equal,' meaning their absolute difference is at most 2. You need to efficiently find and count these pairs.
#2. Count Almost Equal Pairs I
You're given three arrays of numbers. Find the unique numbers that appear in at least two of the three arrays.
#3. Two Out of Three
Page 1 of 1 · 5 total