Showing 3 of 16 questions
Find the common elements present in two given arrays. Return an array containing these intersecting elements, ensuring each element appears only once.
#1. Intersection of Two Arrays
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.
#2. Text Justification
Determine if a given string can be segmented into a space-separated sequence of words from a dictionary. You are given a string and a dictionary of words; can you break the string down using words from the dictionary?
#3. Word Break