Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sshaplygin/uniq-search-frequency
This repo was created for test task that count unique search frequency
https://github.com/sshaplygin/uniq-search-frequency
algorithm cli external-sorting test-task
Last synced: about 1 month ago
JSON representation
This repo was created for test task that count unique search frequency
- Host: GitHub
- URL: https://github.com/sshaplygin/uniq-search-frequency
- Owner: sshaplygin
- Created: 2023-03-22T15:30:00.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-01T16:36:49.000Z (over 1 year ago)
- Last Synced: 2024-06-19T16:44:26.735Z (6 months ago)
- Topics: algorithm, cli, external-sorting, test-task
- Language: Go
- Homepage:
- Size: 40 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# uniq-search-frequency
This is the CLI for `task.txt`. The test task is written in the format .txt in Russian.
## Usage
Step 1. Without build binary file: `go run ./`
or
Step 1. Build app to binary. `go build -o ./bin/cli` \
Step 2. Run cli `./bin/cli`## Flags
CLI support next flags:
- n - memory limit for first uniques search queries. `default value = -1`
- input - input filepath `default = input.txt`
- output - output filepath `default = output.tsv`
- h - print helps about supported cli flagsExample:
```bash
cli --n=3 --input=test.txt --output=test1.tsv
```## Links
Read more:
- External sort [link](https://www.geeksforgeeks.org/external-sorting/)
- Merge sort [link](https://www.geeksforgeeks.org/merge-k-sorted-arrays/)
- Impelemntation extenal sort in Go [link](https://rosettacode.org/wiki/External_sort#Go)