HackerRank - Two Strings | Full solution with examples and visuals

Published: 06 December 2020
on channel: Nikhil Lohia
12,867
204

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


On this page of the site you can watch the video online HackerRank - Two Strings | Full solution with examples and visuals with a duration of hours minute second in good quality, which was uploaded by the user Nikhil Lohia 06 December 2020, share the link with friends and acquaintances, this video has already been watched 12,867 times on youtube and it was liked by 204 viewers. Enjoy your viewing!