Two Strings is a programming challenge on HackerRank. You are given with two strings, determine if they share a common sub-string. A substring may be as small as just one character.
Watch the video to understand the problem in a simplified manner. I then work along with you to solve it first using a Brute Force approach, and then an efficient approach. All along with visuals and explanations.
00:00 - Intro
01:10 - Problem Statement and Test Case
03:32 - Brute Force Solution
06:26 - Efficient Solution
09:45 - Dry-run of code
12:29 - Final thoughts
📚 Links I talk about in the video:
Actual problem on HackerRank: https://www.hackerrank.com/challenges...
Code on Github: https://github.com/nikoo28/java-solut...
Test cases on GitHub: https://github.com/nikoo28/java-solut...
📘 A text based explanation is available at: https://studyalgorithms.com/string/ha...
🔗 To see more videos like this, you can show your support on: https://www.buymeacoffee.com/studyalg...
💻 Get Social 💻
Follow on Facebook at: / studyalgos
Follow on Twitter at: / studyalgorithms
Follow on Tumblr at: / studyalgos
Subscribe to RSS feeds: https://studyalgorithms.com/feed/
Join fan mail: http://eepurl.com/g9Dadv
#hackerrank #programming #interview