DEV Community

Cover image for 24-hour coding interview prep challenge

24-hour coding interview prep challenge

Zahidul Islam on January 04, 2020

I am not a big believer in measuring a developer's skill based on 60 minutes of coding challenges. Most of the time those problems are designed in ...
Collapse
 
jsduniya profile image
JSDUNIYA • Edited

function uniq(str){
var y =[]
for(let char of str){
if(y.includes(char)){
return false;
}
y.push(char);
}
return true;
}

Collapse
 
jsduniya profile image
JSDUNIYA

Here I'm using only one data structure, please let me know if i'm wrong

Collapse
 
alexparra profile image
Alex Parra

Good luck! 👍🏻

Collapse
 
zahidulislam profile image
Zahidul Islam

Thank you @alex