problem4

command
v0.0.0-...-cb75c49 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 27, 2025 License: MIT Imports: 0 Imported by: 0

README

Problem 4

A word is on the loose and now has tried to hide amongst a crowd of tall letters! Help write a function to detect what the word is, knowing the following rules:

  • The wanted word is in lowercase.
  • The crowd of letters is all in uppercase.
  • Note that the word will be spread out amongst the random letters, but their letters remain in the same order.
detectWord("UcUNFYGaFYFYGtNUH") // "cat"

detectWord("bEEFGBuFBRrHgUHlNFYaYr") // "burglar"

detectWord("YFemHUFBbezFBYzFBYLleGBYEFGBMENTment") // "embezzlement"

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL