Skip to content

Commit cfe1d3b

Browse files
committed
Fix #1 - Migrate challenges from Slack to GitHub
Challenge text moved to markdown README files with a subdirectory for each challenge. Also added: - guidelines for contributing in CONTRIBUTE.md - 'sowpods.txt' sample lexicon file for scrabble words challenge
1 parent 99f77ee commit cfe1d3b

File tree

9 files changed

+267849
-2
lines changed

9 files changed

+267849
-2
lines changed

00-sorting/README.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Warmup Challenge: Sorting
2+
3+
Given a list of strings where each string is 2 words, a _first name_ and _last name_ separated by a space, write a function that sorts the list by last name, *then* first name.
4+
5+
> example:
6+
```python
7+
["Anna Smith", "John Anderson", "Cliff Bates"]
8+
```
9+
> sorts to:
10+
```python
11+
["John Anderson", "Cliff Bates", "Anna Smith"]
12+
```
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# WIP

01-matrix-rotate/README.md

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Challenge: Matrix Rotation
2+
3+
Given an _N x N_ matrix represented as a list of lists, write a function that rotates the matrix by 90 degrees clockwise.
4+
5+
> examples:
6+
```python
7+
[[1, 2], -- rotate --> [[3, 1],
8+
[3, 4]] [4, 2]]
9+
10+
11+
[['a', 'b', 'c'], [['x', 1, 'a'],
12+
[ 1, 2, 3 ], -- rotate --> ['y', 2, 'b'],
13+
['x', 'y', 'z']] ['z', 3, 'c']]
14+
```
15+
16+
Try writing two implementations: with and without using `zip()`.

02-caesar-cipher/README.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Challenge: Caesar Cipher
2+
3+
Given two arguments `message` (string) and `shift` (int), write a function that enciphers the message using a caesar (substitution) cipher with the supplied shift value.
4+
5+
Numbers, punctuation, and other non-alphabet characters should be passed through unchanged.
6+
Letter case should be preserved.
7+
8+
> examples:
9+
```python
10+
message = "ABC 123 xyz"
11+
print(caesar(message, 2)) # prints "CDE 123 zab"
12+
13+
message = 'Myxqbkdevkdsyxc, iye mbkmuon dro myno'
14+
print(caesar(message, 16)) # prints ???
15+
```

03-scrabble-words/README.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Challenge: Scrabble Word Finder
2+
3+
Write a program that reads in a lexicon file of valid dictionary words. The program then accepts a player's rack of letters (a list size 1-10) and produces the top _N_ playable words based on scrabble score.
4+
5+
A word is considered playable only if it is contained in the lexicon and all letters required to form the word are in the supplied rack.
6+
7+
See [sowpods.txt](./sowpods.txt) as an example lexicon of valid words.

0 commit comments

Comments
 (0)