Skip to content

Commit 8472392

Browse files
authored
Update smallestdistinctwindow.cpp
1 parent 6bec51f commit 8472392

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Strings/smallestdistinctwindow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ string smallestWindow(string s,string p){
2424
if(freqp.find(s[r])!=freqp.end() && freqw[s[r]]==freqp[s[r]]){
2525
count++; //if the char matches than count increased
2626
}
27-
r++; #increment uptil the main string length
27+
r++; //increment uptil the main string length
2828
}
2929
while(l<=r && count==distinct){
3030
if(ans>r-l){

0 commit comments

Comments
 (0)