There are N children standing in a line. Each child is assigned a rating value.
You are giving candies to these children subjected to the following re
...
136Given an array of integers, every element appears twice except for one. Find that single one.
Note:Your algorithm should have a linear runtime comp
...
ProblemGiven a non-empty string s and a dictionary wordDict containing a list of non-empty words, add spaces in s to construct a sentence where each w
...
ProblemGiven a non-empty string s and a dictionary wordDict containing a list of non-empty words, determine if s can be segmented into a space-separat
...