finding the missing values in a range using any scripting language - perl, python or shell script

Posted by manu on Stack Overflow See other posts from Stack Overflow or by manu
Published on 2010-04-28T08:23:31Z Indexed on 2010/04/28 9:13 UTC
Read the original article Hit count: 393

Filed under:
|
|
|

Hi everyone

I got stuck in one problem of finding the missing values in a range and the range is also variable for the successive rows.

Ex.

===================
inpt
====================
673 673 673 676 676 680
2667 2667 2668 2670 2671 2674
=====================

output should be like this

===================
674 675 677 678 679
2669 2672 2673
========================

This is just one part and the row values can be more also If there is any clarification plz let me know.

thanx in advance manu

© Stack Overflow or respective owner

Related posts about perl

Related posts about python