generated from mwc/lab_pipes
I have completed the lab.
This lab felt a little more independant than the labs from unit 1. I really enjoyed it and it felt very satisfying in ways that I feel when I complete a nice math problem in my certification area. I only got briefly stuck with the different between separating all the different required letter into separate match pipes and keeping them in the same match pipe. I solved this by realizing that one made them have to be in a certain order and the other did not. I haven't used or given help other than the primary concerns in the main discord group. I enjoy the trial and error process and like to do as much on my own because then I feel I am learning instead of just takings others ideas.
This commit is contained in:
parent
70d2b16ef6
commit
423ca8ca02
30
exercises.md
30
exercises.md
|
@ -10,32 +10,42 @@ 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?
|
||||
|
||||
antidisestablishmentarianism
|
||||
`cat words_100k.txt | length | order`
|
||||
|
||||
## 2. How many words have two u's in a row?
|
||||
|
||||
16
|
||||
`cat words_100k.txt | match "uu" | count`
|
||||
|
||||
## 3. How many words have the word "cat" in them?
|
||||
|
||||
893
|
||||
`cat words_100k.txt | match "cat" | count`
|
||||
|
||||
## 4. How many words have all five vowels (aeiou)?
|
||||
|
||||
812
|
||||
`cat words_100k.txt | match "a" | match "e" | match "i" | match "o" | match "u" | count`
|
||||
|
||||
## 5. Which words have two e's in a row, two o's in a row, and two k's in a row? (they don't have to be in that order)
|
||||
|
||||
3
|
||||
`cat words_100k.txt | match "ee" | match "oo" | match "kk" | count`
|
||||
|
||||
## 6. How many words have sixteen or more letters?
|
||||
|
||||
342
|
||||
`cat words_100k.txt | length | order | put 16 | lessthan | count`
|
||||
|
||||
## 7. What's the most frequent 10-letter word?
|
||||
|
||||
government
|
||||
`cat words_100k.txt | length | put 10 | equal | pluck 2 | frequency | order`
|
||||
|
||||
## 8. What's the longest word which doesn't have any repeated letters?
|
||||
|
||||
unproblematic
|
||||
`cat words_100k.txt | length | unique 1 | length | equal 0 2 | pluck 3 | length | order`
|
||||
|
||||
## 9. What's the longest word which only uses four different letters?
|
||||
|
||||
senselessness
|
||||
`cat words_100k.txt | unique | length | put 4 | equal | pluck 3 | length | order`
|
||||
|
||||
## 10. If you rearrange the letters in "sidebar," what other words can you create?
|
||||
|
||||
braised and seabird
|
||||
`cat words_100k.txt | length | put 7 | equal | pluck 2 | match "s" | match "i" | match "d" | match "e" | match "b" | match "a" | match "r"`
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue