Skip to content

Latest commit

 

History

History
7 lines (4 loc) · 278 Bytes

Smallest_Substring.md

File metadata and controls

7 lines (4 loc) · 278 Bytes

#Smallest Substring of All Characters

Given an array with unique characters arr and a string str, find the smallest substring of str containing all characters of arr.

Example: arr: [x,y,z], str: xyyzyzyx result: zyx

Implement your solution and analyze the runtime complexity