Showing 3 of 20 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
You are given an array of positive integers. Determine if you can transform an initial array of all ones into the target array by repeatedly replacing an element with the sum of all elements in the array.
#2. Construct Target Array With Multiple Sums
You're given a sequence of bits representing characters, where each character is either one or two bits long. Determine if the sequence ends with a one-bit character.
#3. 1-bit and 2-bit Characters
Page 1 of 1 · 20 total