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.

Some JavaScript advance concept You should know

Lab #4: Processing + Analog Input

Build a scroll progress bar with vanilla js in 2 minutes or less by Nilay Vishwakarma

useEffect is a powerful tool, but you need to use it with a clear understanding of how it

What is ES6 and what JavaScript programmers need to know?

What is “this” (JavaScript “this” simplified)

“this” used in a method; simba is swapped with this in the constructor method

Mastering testing with Vue.js by testing a real application and setting up CI/CD

How to use the SAML module with IDP Okta.

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

Leetcode Q57. Insert Interval

LeetCode 200 — Number Of Islands

Leetcode 152 : Maximum Product Subarray

LeetCode — Longest Common Sequences