L745. Prefix and Suffix Search || Trie || Prefix Tree

Опубликовано: 19 Июнь 2022
на канале: BarikZone
499
6

⚡️My Courses on Udemy:
▶️ Data Structures & Algorithms for Coding Interview: https://www.udemy.com/course/data-str...

📝Statement: Design a special dictionary with some words that searchs the words in it by a prefix and a suffix.
Implement the WordFilter class:

1)...WordFilter(string[] words) Initializes the object with the words in the dictionary.
2)...f(string prefix, string suffix) Returns the index of the word in the dictionary, which has the prefix prefix and the suffix suffix. If there is more than one valid index, return the largest of them. If there is no such word in the dictionary, return -1.

🛣️Source code: https://leetcode.com/problems/prefix-...

👨‍💻Link to the problem: https://leetcode.com/problems/prefix-...

✴️PRACTICE CODING QUESTIONS
👨‍💻LeetCode: https://leetcode.com/
👨‍💻HackRank: https://www.hackerrank.com/

✔️ Book recommended
🗺️Cracking The Coding Interview
🗺️Daily Coding Problem

❇️FREE RESOURCE ONLINE
🟠https://www.geeksforgeeks.org/practic...

⚡ Please leave a LIKE and SUBSCRIBE for more content! ⚡

⭐ Tags ⭐
LeetCode
CS Ninja
Software Engineering

⭐ Hashtags ⭐
#leetcode

Disclosure: Some links are affiliate links to products. I may receive a small commission for purchases made through these links. #csninja


Смотрите видео L745. Prefix and Suffix Search || Trie || Prefix Tree онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь BarikZone 19 Июнь 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 499 раз и оно понравилось 6 людям.