update: log parser dir to input scanning
This commit is contained in:
29
23-input-scanning/exercises/02-unique-words/main.go
Normal file
29
23-input-scanning/exercises/02-unique-words/main.go
Normal file
@@ -0,0 +1,29 @@
|
||||
// For more tutorials: https://blog.learngoprogramming.com
|
||||
//
|
||||
// Copyright © 2018 Inanc Gumus
|
||||
// Learn Go Programming Course
|
||||
// License: https://creativecommons.org/licenses/by-nc-sa/4.0/
|
||||
//
|
||||
|
||||
package main
|
||||
|
||||
// ---------------------------------------------------------
|
||||
// EXERCISE: Unique Words
|
||||
//
|
||||
// Create a program that counts the unique words from an
|
||||
// input stream.
|
||||
//
|
||||
// 1. Feed the shakespeare.txt to your program.
|
||||
//
|
||||
// 2. Scan the input using a new Scanner.
|
||||
//
|
||||
// 3. Configure the scanner to scan for the words.
|
||||
//
|
||||
// 4. Count the unique words using a map.
|
||||
//
|
||||
// EXPECTED OUTPUT
|
||||
// There are 99 words, 70 of them are unique.
|
||||
// ---------------------------------------------------------
|
||||
|
||||
func main() {
|
||||
}
|
Reference in New Issue
Block a user