As reported: Visa Software Engineer (India), technical round 1 (2025, 50 minutes): one DSA question similar to LeetCode Number of Matching Subsequences, then questions on SQL vs NoSQL, microservices, Spring Boot filters, authentication vs authorization,
super()and heap / stack memory.
Given a string s and an array of strings words, return how many words[i] are subsequences of s (obtainable by deleting zero or more characters of s without reordering). Duplicate words each count.
This is LeetCode 792 — Number of Matching Subsequences.
Example
s = "abcde", words = ["a","bb","acd","ace"] -> 3
s = "dsahjpjauf", words = ["ahjpjau","ja","ahbwzgqnuk","tnmlanowax"] -> 2
Constraints: 1 ≤ s.length ≤ 5·10^4; 1 ≤ words.length ≤ 5000; 1 ≤ words[i].length ≤ 50; lowercase letters only.
Code runner format: one JSON value per line: s, then words. Implement numMatchingSubseq(s, words); the harness prints the count.