Showing 3 of 97 questions
Determine if a number is a 'happy number'. A happy number eventually reaches 1 when replaced by the sum of the squares of its digits, repeating the process until it does.
#1. Happy Number
You're given a list of jobs with start times, end times, and profits. Find the maximum profit you can obtain by scheduling a subset of jobs that don't overlap.
#2. Maximum Profit in Job Scheduling
You are given k sorted lists. Combine all of their elements into a single sorted list and return it.
#3. Merge k Sorted Lists