How do I solve this programming logic exercise?

Опубликовано: 27 Июль 2026
на канале: Serliv | Daniel Tapias Morales
4,604
354

How to think about solving a programming logic problem with Javascript?

There are several ways to think about it, and in this video I want to help you with that process.

Check out the problem statement:
Given a matrix of numbers that may or may not contain internal number matrices, create a function that receives this matrix and returns a matrix of non-repeated numbers.

FRIENDSHIP DISCOUNT COURSES

🎁 Programming Logic and Data Structures with Javascript Course: https://serfrontend.com/cursos/logica...

🎁 Web Front-end Fundamentals Course. Learn HTML, CSS and Javascript:

https://serfrontend.com/cursos/web-fu...

🎁 From Figma to Code Course. Complete Web Interface Design
https://serfrontend.com/cursos/do-fig...

📙[Purchase the E-book]
50 Javascript Code Refactoring Tips: The Secret of Experienced Developers.

https://go.hotmart.com/B92973901Y

📚🖥️🖱️Books, Computers and Peripherals that I recommend🖱️🖥️📚

https://www.amazon.com.br/shop/serliv 🫰

Become a member of this channel and get EXCLUSIVE BENEFITS:
   / @serliv  

🌟 Links mentioned in the video and other interesting ones 🌟

Books on programming and algorithms that I recommend
✅ Understanding Algorithms: An Illustrated Guide for Programmers and Other Curious Minds
https://amzn.to/3HjW3S2
✅ Programming Logic and Algorithms with JavaScript: An Introduction Computer Programming with Examples and Exercises for Beginners
https://amzn.to/3SgmM8d
✅ Data Structures and Algorithms with JavaScript: Write Complex and Effective JavaScript Code Using the Latest ECMAScript
https://amzn.to/3SgN36c

🍕If you buy anything on Amazon, please use my link to help me buy a pizza this weekend https://amzn.to/3HKFkHN 😊

📺 Featured Videos Playlist.

   • VÍDEOS EM DESTAQUE  

📺 Follow the playlist WEB FUNDAMENTALS HTML + CSS COURSE
   • CURSO Web Fundamentos: HTML e CSS com PROJ...  

✅ I'M TIRED I Don't Want to Work with Programming Anymore (Not Clickbait)
   • CANSEI Não Quero Mais Trabalhar com Progra...  

✅ LEARN RECURSIVE FUNCTION with the SIMPLEST EXPLANATION you'll ever see
   • APRENDA FUNÇÃO RECURSIVA com a EXPLICAÇÃO ...  

✅ The best lesson on REDUCE in JAVASCRIPT. Now YOU LEARN
   • A melhor aula sobre REDUCE no JAVASCRIPT. ...  

✅ What is the difference between find() and filter()

   • Qual é a diferença entre find() e filter()  

#javascript #frontend #webdevelopment #frontenddevelopment #webdev #programming #programminglogic #algorithm #arrays #learnprogramming

00:00 Introduction
03:22 Solving with recursion
13:11 Solve with flat() and ForEach
22:05 Solve with flat and filter()
28:59 Spread operator and new Set()