Skip to content

Atiqa N.#16

Open
atiqanaseer wants to merge 2 commits intoHackYourAssignment:mainfrom
atiqanaseer:main
Open

Atiqa N.#16
atiqanaseer wants to merge 2 commits intoHackYourAssignment:mainfrom
atiqanaseer:main

Conversation

@atiqanaseer
Copy link

No description provided.

@sycons sycons self-assigned this Feb 14, 2026
Copy link

@sycons sycons left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You have a good grasp on algorithms and using them in problem solving. However pay attention to the test cases (missing for upper case) and also calling the search functions on all the arrays and for different target values.

  • Count values above a threshold ✅
  • Write Unit Tests ✅
  • Debug and Fix the Logic ✅


console.log(countVowels("hello"));
console.log(countVowels("javascript"));
console.log(countVowels(""));
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A test case for uppercase vowels would be good here.


const arr1 = generateBigArray(1000);
const arr2 = generateBigArray(100000);
const arr3 = generateBigArray(10000000);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More descriptive names might be better. E.g. bigArray10M


console.time("linearSearch arr3");
console.log(linearSearch(arr3, 123456789));
console.timeEnd("linearSearch arr3");
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Execution of search for the other arrays are missing as well as additional target values other than 123456789

@sycons sycons added Reviewed This assignment has been reivewed by a mentor and a feedback has been provided and removed To review labels Feb 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Reviewed This assignment has been reivewed by a mentor and a feedback has been provided

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants