Showing 3 of 8 questions
Given a sequence of words and a line width, format the text to fit within the specified width. You must justify the text, distributing extra spaces evenly between words.
#1. Text Justification
Calculate the N-th Tribonacci number, where each number is the sum of the previous three numbers. You're given the value of N, and initial values for the first three Tribonacci numbers.
#2. N-th Tribonacci Number
You're given an array of numbers. Find the minimum number of increments needed to make all the numbers in the array unique.
#3. Minimum Increment to Make Array Unique