QA Automation SDET Interview Coding Challenge - Find Duplicates in array

Опубликовано: 17 September 2026
на канале: Codemify
1,850
80

Book your free *QA career consultation with Sergii*: https://calendly.com/codemify/consult...

1 week *Introduction to Manual QA course*:
https://codemify.com/intro-week?utm_s...

*QA Automation one-week Introduction course*:
https://codemify.com/intro-automation...

*Courses and prices*: https://www.codemify.com/experts

Codemify Instagram:   / codemify_  
Codemify Telegram: https://t.me/codemifyschool
Sergii's LinkedIn:   / sergii-khromchenko-1099ab93  

Quick links to get in touch:
Watch your first FREE QA Lesson - https://codemify.com/free-training-form

QA Courses :
Courses For Beginners with no experience :
✋ Manual QA Training (1,5 months duration) - Try for FREE - https://codemify.com/manual-qa-course...

✋🧑‍💻 Complete QA Course Manual + Automation QA (5 months duration)- sign up for a free Intro lesson here - http://codemify.com/courses

Courses Schedule - https://codemify.com/courses-schedule

*YouTube playlists for you*:
✅ More about QA Job:    • QA Engineer Job in details  
✅ Our student's reviews:    • Codemify Bootcamp Student Reviews - QA Eng...  

✔️ Registration form for the course - ​https://codemify.com/contact
✔️Bootcamp student reviews: https://codemify.com/testimonials

00:00 – Code Written by AI (Introduction)
00:02 – Why AI Is Useless Without Understanding It
00:10 – Algorithm Challenges From QA Interviews Explained
00:58 – Meet Sergii (QA Engineer & Mentor Introduction)
01:23 – Helping Students Worldwide Land QA Jobs
01:32 – Coding Challenge: Find Duplicates in Array (JavaScript)
02:01 – Creating the findDuplicates Function in JS
02:35 – Example Array With Duplicates
02:54 – Different Ways to Solve Duplicate Problem
03:13 – Brute Force Method Explained (Nested Loops)
03:20 – Why Brute Force Is Inefficient
03:38 – Using forEach Loop for Efficiency
04:07 – Storing Data in Object for Counting
05:10 – Tracking Duplicate Occurrences With Objects
06:04 – Checking Keys With hasOwnProperty
06:34 – Visualizing Numbers Count Object
07:15 – Updating Counts for Repeated Values
08:01 – Incrementing Values With ++ Operator
08:18 – Running the Code & Debugging Mistakes
08:47 – Why Console Log & Return Are Needed
09:17 – Correct Output: Unique & Duplicate Numbers
09:46 – Finding How Many Occurrences Each Number Has
10:04 – Extracting Only Duplicates Efficiently
10:28 – Adding dupes Object for Tracking Duplicates
10:53 – Detecting When Numbers Appear Multiple Times
11:21 – Implementing Duplicate Logic Inside dupes
11:46 – Handling First vs. Repeated Occurrences
12:09 – Adding Duplicate Entries Correctly
12:18 – Showing All Duplicates in Results
12:40 – Side Note: Free English Training for Tech Students
12:47 – Returning to Duplicates Code Explanation
13:00 – Bug: Duplicate Count Not Correct
13:20 – Fixing Duplicate Count Logic
13:37 – Verifying Correct Number of Duplicates
14:05 – Improving Duplicate Detection Further
14:36 – Adding Indexes of Each Duplicate Value
14:46 – Pause & Break Reminder (Stay Focused)
15:04 – Adding Indexes With forEach Loop
15:34 – Using push() to Store Duplicate Indexes
16:02 – Final Output: Duplicates With Indexes
16:10 – Better Visualization With console.table
16:29 – Clean Results: Occurrences & Indexes of Duplicates
16:46 – Wrap-Up: All Duplicates Found With Indexes
16:55 – Outro & Next Video