Back to Browse

Valid Perfect Square (LeetCode 367) | Binary Search and Mathematical Sequence | Fun

2.6K views
Mar 25, 2025
13:49

Join this channel to get access to perks: https://www.youtube.com/channel/UCT-S2ngqEBoYCM5UKuNeELg/join Actual problem on LeetCode: https://leetcode.com/problems/valid-perfect-square/description/ Chapters: 00:00 - Intro 00:39 - Problem Statement 02:00 - Brute Force Approach 03:10 - Using Binary Search 05:26 - Code for Binary Search 08:11 - Mathematical Magic 10:50 - Dry run of Code 12:44 - Final Thoughts πŸ“š Links to topics I talk about in the video: Binary Search: https://youtu.be/MBQSC_Shebo Divide and Conquer: https://youtu.be/yePqwt8wSi8 Other Easy Problems: https://www.youtube.com/playlist?list=PLFdAYMIVJQHMap2jOyU6-kHjQEL-vxlV2 πŸ“˜ A text based explanation is available at: https://studyalgorithms.com Code on Github: https://github.com/nikoo28/java-solutions/blob/master/src/main/java/leetcode/easy/ValidPerfectSquare.java Test-cases on Github: https://github.com/nikoo28/java-solutions/blob/master/src/test/java/leetcode/easy/ValidPerfectSquareTest.java πŸ“– Reference Books: Starting Learn to Code: https://amzn.to/3sJm8Wl Favorite book to understand algorithms: https://amzn.to/4848xJH Favorite book for data structures: https://amzn.to/3P96YBv Get started for interview preparation: https://amzn.to/44Nn5du πŸ”— To see more videos like this, you can show your support on: https://www.buymeacoffee.com/studyalgorithms πŸŽ₯ My Recording Gear: Recording Light: https://amzn.to/3PdsViT Microphone: https://amzn.to/3Exv83x Recording Camera: https://amzn.to/3PwyN8e Tablet to sketch and draw: https://amzn.to/3ZdKVy7 Sketching Tool: https://amzn.to/45XJEgY Laptop to edit videos: https://amzn.to/460ofDu πŸ’» Get Social πŸ’» Follow on Facebook at: https://www.facebook.com/studyalgos Subscribe to RSS feeds: https://studyalgorithms.com/feed/ Join fan mail: http://eepurl.com/g9Dadv #leetcode #programming #interview

Download

1 formats

Video Formats

360pmp430.2 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Valid Perfect Square (LeetCode 367) | Binary Search and Mathematical Sequence | Fun | NatokHD