Add exercises and commit template
This commit is contained in:
parent
f9a377dbe9
commit
a9615a2880
|
@ -0,0 +1,19 @@
|
|||
|
||||
|
||||
# -----------------------------------------------------------------
|
||||
# Write your entire commit message above this line.
|
||||
#
|
||||
# The first line should be a quick description of what you changed.
|
||||
# Then leave a blank line.
|
||||
# Then, taking as many lines as you want, reflect on your experience with
|
||||
# this lab. Write about whatever you want; here are a few suggestions:
|
||||
#
|
||||
# - How did this lab feel different from Unit 1? Did this kind of thinking
|
||||
# feel familiar from other kinds of thinking you have done before?
|
||||
# - This lab asked you to use the Terminal in a very different way.
|
||||
# What was it like for you? Did you have any interesting ideas while you
|
||||
# worked on this lab?
|
||||
# - Did you get stuck? In different ways from Unit 1? What strategies did you
|
||||
# use to get unstuck?
|
||||
# - Have you started giving help to peers or getting help from peers? Why or
|
||||
# why not?
|
|
@ -0,0 +1,41 @@
|
|||
# Exercises
|
||||
|
||||
Answer the following questions (or at least as many as you can figure out) in this document.
|
||||
For all the questions, use the 100k words. Give your answer for each exercise, and
|
||||
show the command you used to get it. Each question can be answered using a single Terminal
|
||||
command, though you might need to use a number of pipes.
|
||||
|
||||
If you want to be really stylish, put your code inside of backticks like this:
|
||||
|
||||
`cat words_100k.txt | length | put 10 | equal | count`
|
||||
|
||||
## 1. What is the longest word?
|
||||
|
||||
|
||||
## 2. How many words have two u's in a row?
|
||||
|
||||
|
||||
## 3. How many words have the word "cat" in them?
|
||||
|
||||
|
||||
## 4. How many words have all five vowels (aeiou)?
|
||||
|
||||
|
||||
## 5. Which words have two l's in a row, two m's in a row, and two t's in a row? (they don't have to be in that order)
|
||||
|
||||
|
||||
## 6. How many words have sixteen or more letters?
|
||||
|
||||
|
||||
## 7. What's the most frequent 10-letter word?
|
||||
|
||||
|
||||
## 8. What's the longest word which doesn't have any repeated letters?
|
||||
|
||||
|
||||
## 9. What's the longest word which only uses four different letters?
|
||||
|
||||
|
||||
## 10. If you rearrange the letters in "sidebar," what other words can you create?
|
||||
|
||||
|
Loading…
Reference in New Issue