-
Recent Posts
Recent Comments
Archives
Categories
Meta
Category Archives: hashtable
longest-substring-without-duplicate-characters
public class LengthOfLongestSubstring { public static int lengthOfLongestSubstring(String s) { if (s == null) { return 0; } Map<Character, Integer> map = new HashMap<>(); int maxLength = 0; int start = 0; for (int i = 0; i < s.length(); … Continue reading
Posted in hashtable
Comments Off on longest-substring-without-duplicate-characters