Загрузка...

Leetcode or Die: #242 Valid Anagram and #290 Word Pattern

Leetcode or Die: #Top150 #interviewprep

#242 Valid Anagram
Given two strings s and t, return true if t is an anagram of s, and false otherwise.

#290 Word Pattern
Given a pattern and a string s, find if s follows the same pattern.
Here follow means a full match, such that there is a bijection between a letter in pattern and a non-empty word in s. Specifically:
Each letter in pattern maps to exactly one unique word in s.
Each unique word in s maps to exactly one letter in pattern.
No two letters map to the same word, and no two words map to the same letter.

Links:
Twitch: https://twitch.tv/censoredHacker
X: twitter.com/censoredHacker
Discord: https://discord.gg/FXNjpTtBFp
Reddit: https://www.reddit.com/r/censoredHacker/

Видео Leetcode or Die: #242 Valid Anagram and #290 Word Pattern канала censoredHacker
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять