Skip to content

Leetcode392 Given two strings s and t, return true if s is a subsequence of t, or false otherwise.

Notifications You must be signed in to change notification settings

edmar141811/Leetcode392

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Leetcode392

Leetcode392 Given two strings s and t, return true if s is a subsequence of t, or false otherwise.

A subsequence of a string is a new string that is formed from the original string by deleting some (can be none) of the characters without disturbing the relative positions of the remaining characters. (i.e., "ace" is a subsequence of "abcde" while "aec" is not).

Runtime 0 ms Beats 100.00%

While this might be the stated runtime, considering that the Big O is n^2 it is still slow even if memory usage is good

Memory 7.77MB Beats 99.99%

This kind of usage would mainly be useful for code that needs to be run a minimal times and with string that are average to smaller sizes

About

Leetcode392 Given two strings s and t, return true if s is a subsequence of t, or false otherwise.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published