We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7dd8bb5 commit 3d50f87Copy full SHA for 3d50f87
392.rkt
@@ -0,0 +1,7 @@
1
+#lang racket
2
+
3
+(define (is-subsequence s t)
4
+ (for/and ([c s])
5
+ (string-contains? t (~a c))))
6
7
+(is-subsequence "x" "affbc")
0 commit comments