Showing 3 of 8 questions
Given a network of connected nodes with assigned values, find the difference between the highest and lowest possible price sums along valid paths. This challenge tests your ability to efficiently traverse tree or graph structures to calculate cumulative values.
#1. Difference Between Maximum and Minimum Price Sum
You are given a string of digits. Find the length of the longest substring that is "awesome", meaning it contains an even number of each digit except for at most one digit that appears an odd number of times.
#2. Find Longest Awesome Substring
Simulate a game where two adjacent numbers in an array compete. Determine the winner after a certain number of consecutive wins.
#3. Find the Winner of an Array Game
Page 1 of 1 · 8 total