Showing 3 of 3 questions
A special binary string has equal numbers of 0s and 1s, and any prefix has at least as many 1s as 0s. You need to recursively make the lexicographically largest special string possible from a given special binary string.
#1. Special Binary String
You're given a list of flight tickets, each representing a departure and arrival airport. Reconstruct the itinerary by visiting all the airports in the lexicographically smallest order, starting from "JFK".
#2. Reconstruct Itinerary
Given a positive integer N, find the number of ways it can be expressed as the sum of consecutive positive integers. For example, the number 9 can be expressed as 2+3+4 or 4+5, so there are two ways.
#3. Consecutive Numbers Sum
Page 1 of 1 · 3 total