← Questions

Find where a sentence occurs in a document, with wildcards

0
CognitionCodingLast asked Oct 2024

Given a document and a query sentence, return the positions in the document where the sentence occurs. The query may contain * wildcards that match loosely, so a plain substring search is not enough; settle with the interviewer what a wildcard may stand for before you code.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding