Skip to content

bsa7/nmax

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nmax Gem Version Build Status

Ruby gem, reads text data from the input stream, upon completion of the input, displays the n largest integers, met in the received text data.

usage

Script runs from console with command:

cat <filename> | nmax <limit_count>

Where

  • filename - name of file with text data;
  • limit_count - limit count of founded biggest numbers

test

rake test

install

  • gem install nmax-aoirgf

Note: You may need to use sudo to install gems, but it is preferable to do without it.

license

Copyright (C) 2020 Sergio Belevskij

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

About

Ruby gem for parse integers from stdin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages