Day 9 of LeetCode Challenge
Problem 1: Word Pattern
Link to the problem: https://leetcode.com/problems/word-pattern/description/
import java.util.HashMap;
class Solution {
public boolean wordPattern(String pattern, String s) {
String[] words = s.split(" ");
...
tusharpant.hashnode.dev3 min read