Two Sum
Given an array of integers and a target value, return the indices of the two numbers that add up to the target. Each input has exactly one solution and you may not use the same element twice.
0 devs waiting right now
Drop in a nickname, join the queue, and get randomly paired with another developer. You both land in the same room with the same problem, a shared code buffer and a chat panel.
No nickname? You'll show up as stranger.
Given an array of integers and a target value, return the indices of the two numbers that add up to the target. Each input has exactly one solution and you may not use the same element twice.
Given a string containing only the characters ()[]{}, determine whether the brackets are balanced and correctly nested.
Given a sentence, reverse the order of the words. Collapse repeated spaces and trim leading/trailing whitespace.