Hanna Haurylava
Junior Frontend Developer.
I’m a really creative, Positive and Friendly person. I take my tasks responsibly and bring everything to the end. I have a mathematical mindset, attention to details, thinking ahead. I have a desire to improve skills in the sphere of IT, and to learn English.
In the process of improving knowledge: JS, HTML5, CSS3, Git & GitHub, Adobe Photoshop, Figma
function numberOfPairs(gloves){
let sortGloves = gloves.slice().sort();
let globalCount = 0, i = 0, count;
firstFor:for(i = 0; i < sortGloves.length-1; ){
count = 1;
for(let j = i+1; j < sortGloves.length; j++){
if (sortGloves[i] == sortGloves[j]){
count++;
if(j == sortGloves.length-1) break firstFor;
} else{
globalCount += Math.floor(count/2);
i = j;
continue firstFor;
}
}
}
globalCount += Math.floor(count/2);
return globalCount;
}
Kuleshov Mogilev State University
Faculty of Physics and Mathematics, specialty teacher of computer science and English
Rolling Scopes School Course: JavaScript Development
Russian - Native
English - A2+
Belarusian - Intermediate