forked from JClutch/Test-Bank
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jason McCutchan
authored and
Jason McCutchan
committed
Mar 24, 2018
1 parent
bf2fd9a
commit 2610195
Showing
2 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Poor Man's Google | ||
|
||
## Prompt | ||
|
||
Create an application (CLI or GUI) that prompts the user for a text string, performs a Web search (Google(deprecated)/Yahoo(deprecated)/Bing/other - your choice) and returns the title and URL of the first result. Use any tools / libraries you wish, but you must provide instructions on how to build and run your application(README.md file). Include a brief description of your application, why you implemented it the way you did, and any optomizations you did. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Match Patterns | ||
|
||
## Prompt | ||
|
||
Given two text files: | ||
1.) input.txt - a free-text document composed of 1 or more lines of text | ||
2.) patterns.txt - a set of search strings (1 per line). | ||
|
||
Create an application (CLI or GUI) that can run in three following modes: | ||
|
||
### Modes: | ||
1: output all the lines from input.txt that match exactly any pattern in patterns.txt | ||
2: output all the lines from input.txt that contain a match from patterns.txt somewhere in the line. | ||
3: output all the lines from input.txt that contain a match with edit distance <= 1 patterns.txt | ||
|
||
|
||
An example of this: | ||
|
||
``` | ||
input.txt | ||
Hello. This is line 1 of text. | ||
and this is another. | ||
line 3 here | ||
the end | ||
patterns.txt | ||
the end | ||
matches | ||
line 3 | ||
and this is anoother. | ||
Mode 1 outputs: | ||
the end | ||
Mode 2 outputs: | ||
line 3 here | ||
the end | ||
Mode 3 outputs: | ||
and this is another. | ||
the end | ||
``` |