Leetcode Problem #392: Is Subsequence. An Efficient Two-Sum Solution Using Hash Table

Renato Francia
4 min readJan 14, 2024

--

Photo by Vedrana Filipović on Unsplash

Let’s move on with another Leetcode problem. This one is a great way to practice Lists for beginners. Again, we’ll apply the process suggested in Cracking the Coding Interview by Gayle Laakmann McDowell.

TLDR;

Just loop the T List and use an index for s. Check each character in T and compare…

--

--

Renato Francia

Software Developer, Digital Nomad, Blogger and Tech Enthusiast.