Problems on Strings to Crack your Next Coding Interview | Data Structures and Algorithm
Автор: SCALER
Загружено: 2021-07-05
Просмотров: 4026
The string is a popular topic for programming job interviews. To crack coding interviews it is imperative to practise these must do problems on strings. In this video, Scaler brings you a set of string problems to ace programming interviews. Learn more about Scaler:https://bit.ly/3iOdwoH
Before you start off with these problems, having solid knowledge of the basics of data structures and algorithms is recommended.
🔹 What is String?
A string is a data type used in programming languages that is used to represent text rather than numbers.
🔹 String Matching Algorithm
String Matching Algorithms or searching algorithms try to find places where one or several strings are found within a larger string. They are classified into different types such as naive string matching, kmp string matching, etc.
Naive string matching is the simplest form of string matching algorithm. It checks for all the main characters of the main string to the pattern. The time complexity of Naive Pattern Search method is O(m*n).KMP string matching checks the characters from left to right. The time complexity of KMP is O(n).
The following topics are covered in this video 👇🏼
0:46 Question 1- rearranging a given string
14:03 Brute force solution to question 1
18:29 Question 1 solution using hash maps
26:10 Solution using Rabin Karp method
34:00 Question 2 - Rolling Hash function
51:12 Question 3- Finding the first non-repeating character in a string
59:30 Question 4 - Finding if 2 strings are isomorphic
1:07:45 Question 5- removing pairs of duplicate characters placed together
1:17:10 Question 6 - Create a string by repeating a substring
--------------------------------------- About Scaler -------------------------------------------------
We are a tech-focused upskilling and reskilling platform catering to tech enthusiasts in universities and working professionals. There are more Scaler graduates working at Amazon than all of the IITs combined!
Learn more about Scaler: https://bit.ly/3iOdwoH
📌 Follow us on Social and be a part of an amazing tech community📌
👉 Meet like-minded coder folks on Discord - / discord
👉 Tweets you cannot afford to miss out on - / scaler_official
👉 Check out student success stories, expert opinions, and live classes on Linkedin - / scalerofficial
👉 Explore relatable memes and get access to exclusive updates on Instagram - / scaler_official
📢 Be a part of our one of a kind telegram community: https://t.me/Scalercommunity
🔔 Hit that bell icon to get notified of all our new videos 🔔
If you liked this video, please don't forget to like and comment. Never miss out on our exclusive videos to help boost your coding career! Subscribe to Scaler now!
https://www.youtube.com/Scaler?sub_co...
#strings #problemsonstring #coding
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: