Leetcode 290. Word Pattern

Input: pattern = "abba", s = "dog cat cat dog"
Output: true
Input: pattern = "abba", s = "dog cat cat fish"
Output: false
Input: pattern = "aaaa", s = "dog cat cat dog"
Output: false

--

--

--

CS new grad, 6 years experience related to supply chain management. Located in Bay area

Love podcasts or audiobooks? Learn on the go with our new app.

What’s the Difference Real vs Virtual DOM

Browser Compatibility Test with Lambdatest and Selenium

Let’s Compose Promises!

What you have to learn MUST in HTML5 CSS and JavaScript…

Fun with React Hooks

Summary of React Conf Brazil — 2018

re-start: write once, run anywhere

Dynamically populating components using list in VueJS

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Gary Chiang

Gary Chiang

CS new grad, 6 years experience related to supply chain management. Located in Bay area

More from Medium

Connect Ropes(code and explanation)

Evaluation of binary expression tree

Top tech company coding challenge

Data Structure — Linked List

Knight Probability in Chessboard Solution | LeetCode-688: Medium | JavaScript Implementation