How to Compute Shortest Distance to a Character in a String?
September 8, 2018
algorithms, c / c++, coding exercise, learn to code, leetcode online judge, programming languages
No Comments

Given a string S and a character C, return an array of integers representing the shortest distance from the character C in the string. Example: Input: S = “loveleetcode”, …
