LeetCode #821 Shortest Distance to a Character 字符的最短距离
Description:GivenastringSandacharacterC,returnanarrayofintegersrepresentingtheshortestdistancefromthecharacterCinthestring.Example:Example1:Input:S="loveleetcode",C='e'Output:[3,2,1,0,1,0,0,1,2,2,1,0]