Leetcode: 01 Two Sum [golang, 2021]
John McBride
This is the solution to Leetcode question 1: Two Sum using Golang.
#johncodes
🚀 SUMMARY: Leetcode two sum can be solved trivially with a brute force using two iterations of the numbers array. The more elegant solution is to use a hashmap to store the complimentary number when iterating the slice.
🔗 SOCIAL LINKS: ► Live on Twitch: https://johncodes.live ► Join the Discord: https://discord.gg/jk4uSKhx3e ► Twitter: https://twitter.com/johncodezzz ► Instagram: https://www.instagram.com/johncodezzz/ ► TikTok: https://tiktok.com/@johncodes ► Home page: https://johncodes.com ► Email contact: hello@johncodes.com
🎵 MUSIC CREDITS: ► Outset island: Legend of Zelda - Wind Waker
🤔 About: Hi all, I’m John, an experienced software engineer and open source software enthusiast / contributor. I make fun and informative videos about tech, engineering, productivity, and life! Like, comment, and subscribe for more! ... https://www.youtube.com/watch?v=Eug4UyIeoiQ
93325846 Bytes