You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP

nmax_cli

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nmax_cli

0.0.2
Version published
Maintainers
1
Created

Build Status Coverage Status

nmax

Output N maximum numbers from input stream

Installation

Add this line to your application's Gemfile:

gem ' nmax_cli'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install nmax_cli

Example

cat sample_data_40GB.txt | nmax 10000 

скрипт nmax, делает следующее:

  • читает из входящего потока текстовые данные
  • по завершении ввода выводит n самых больших целых чисел, встретившихся в полученных текстовых данных

Дополнительные указания:

  • числом считается любая непрерывная последовательность цифр в тексте
  • известно, что чисел длиннее 1000 цифр во входных данных нет
  • число n должно быть единственным параметром скрипта
  • код должен быть покрыт тестами
  • код должен быть оформлен в виде гема (содержащего исполняемый файл, код модулей и т.д.)
  • плюсом является размещение на Github и интеграция с Travis CI

FAQs

Package last updated on 24 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts