filmov
tv
Is Subsequence | Leetcode #392 | Binary search + Map | 2 Pointer
Показать описание
This video explains a very important programming interview problem which is to find if a given string is a subsequence of another string or not.This problem is a variant of LCS (longest common subsequence) but solving it using LCS is very inefficient.A very simple and intuitive way to solve it is by using 2 pointer approach.But what happens if we face a lot of queries! Let's say queries comes in order of billions. Then how to solve this efficiently? I have shown second approach which solves this follow up problem for large queries efficiently.I have explained the code walkthrough at the end of the video.CODE LINK is present below as usual. If you find any difficulty or have any query then do COMMENT below. PLEASE help our channel by SUBSCRIBING and LIKE our video if you found it helpful...CYA :)
=================================================================
=================================================================
OTHER PROBLEMs:-
=================================================================
=================================================================
OTHER PROBLEMs:-
Комментарии