Skip to content

Commit

Permalink
added 2 challenges
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason McCutchan authored and Jason McCutchan committed Mar 24, 2018
1 parent bf2fd9a commit 2610195
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Coding_Challenges/JabroniGoogle/README.md
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.

42 changes: 42 additions & 0 deletions Coding_Challenges/MatchPatterns/README.md
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
```

0 comments on commit 2610195

Please sign in to comment.