Skip to content

Instantly share code, notes, and snippets.

View shuboy2014's full-sized avatar
🎯
Focusing

Shubham Aggarwal shuboy2014

🎯
Focusing
View GitHub Profile
@sadikaya
sadikaya / git-bash-in-webstorm.md
Last active November 26, 2024 15:31
git bash inside Webstorm terminal

Go to File -> Settings -> Tools -> Terminal and change Shell path based on the the installed git version.

for 64bit:

"C:\Program Files\Git\bin\sh.exe" --login -i

for 32bit:

"C:\Program Files (x86)\Git\bin\sh.exe" --login -i
function minimumWindowSubstring(str, substr) {
let lettersSeen = {};
let lettersNeeded = {};
let lettersMissing = 0;
for(let i = 0; i < substr.length; i++) {
if(substr[i] in lettersNeeded){
lettersNeeded[substr[i]] += 1;
} else {
lettersNeeded[substr[i]] = 1;