Sunday, July 22, 2018

Leetcode 290. Word Pattern

July 22, 2018

Introduction


It is easy level algorithm called word pattern. I did not catch the constraint until my code failed the test case: "abba" with "dog dog dog dog". The problem statement is written using the following phrases:  bijection. Given example 4 is the test case I failed in my first writing.

Here is my C# code passing online judge.



No comments:

Post a Comment