To see more videos like this, you can buy me a coffee: www.buymeacoffee.com/studyalg...
A very important and an interesting problem that will assess your logical thinking skills. From an array find the product of all other elements except self. Watch this video to understand why the most obvious way to approach this problem will give you a wrong answer, and how can you come up with an efficient solution. Follow along with animations, visual aids and a dry-run of code in JAVA
Chapters:
00:00 - Intro
00:50 - Problem Statement and Test cases
03:05 - The most obvious way fails
06:33 - Thinking out of the box
10:55 - Dry-run of Code
12:57 - Final Thoughts
Actual problem on LeetCode: leetcode.com/problems/product...
📚 Links to topics I talk about in the video:
LeetCode Problems: • Leetcode Solutions
Problems on Arrays: • Arrays
What is Big O?: • Big O Notation Simplif...
Other medium difficulty problems: • Medium Problems
📘 A text based explanation is available at: studyalgorithms.com
Code on Github: github.com/nikoo28/java-solut...
Test-cases on Github: github.com/nikoo28/java-solut...
📖 Reference Books:
Starting Learn to Code: amzn.to/3sJm8Wl
Favorite book to understand algorithms: amzn.to/4848xJH
Favorite book for data structures: amzn.to/3P96YBv
Get started for interview preparation: amzn.to/44Nn5du
🎥 My Recording Gear:
Recording Light: amzn.to/3PdsViT
Microphone: amzn.to/3Exv83x
Recording Camera: amzn.to/3PwyN8e
Tablet to sketch and draw: amzn.to/3ZdKVy7
Sketching Tool: amzn.to/45XJEgY
Laptop to edit videos: amzn.to/460ofDu
💻 Get Social 💻
Follow on Facebook at: / studyalgos
Follow on Twitter at: / studyalgorithms
Follow on Tumblr at: / studyalgos
Subscribe to RSS feeds: studyalgorithms.com/feed/
Join fan mail: eepurl.com/g9Dadv
#leetcode #programming #interview
4 авг 2024