Hot Search : Source embeded web remote control p2p game More...
Location : Home Downloads Documents Industry research

find-sum

  • Category : Industry research
  • Tags :
  • Update : 2015-02-04
  • Size : 23kb
  • Downloaded :0次
  • Author :shruti*******
  • About : Nobody
  • PS : If download it fails, try it again. Download again for free!
Introduction - If you have any usage issues, please Google them yourself
1. Find Sum. Given a set of n integers (in sorted order) and another integer x. The algorithm has been designed that verifies whether there exist pairs of integers a and b such that a + b = x, Algorithm should output all such pair of integers. our program takes as input a sequence of numbers in sorted order (in first line), the integer x (in second line) and outputs the resulting pairs as a,b (each pair on a separate line). Note: Order of occurrence in output file among these resulting pairs should be maintained. eg. Input file (input.txt) 15 19 20 23 27 31 40 45 60 Output file (output.txt) 15,45 20,40 It assumes that our program is compiled into findSum.out executable and takes input.txt file as input and output.txt file as output. ./findSum.out input.txt output.txt
Packet file list
(Preview for download)


find sum\assignmentada2.docx
........\q1 findsum.docx
........\q1.cpp
find sum
Related instructions
  • We are an exchange download platform that only provides communication channels. The downloaded content comes from the internet. Except for download issues, please Google on your own.
  • The downloaded content is provided for members to upload. If it unintentionally infringes on your copyright, please contact us.
  • Please use Winrar for decompression tools
  • If download fail, Try it againg or Feedback to us.
  • If downloaded content did not match the introduction, Feedback to us,Confirm and will be refund.
  • Before downloading, you can inquire through the uploaded person information

Nothing.

Post Comment
*Quick comment Recommend Not bad Password Unclear description Not source
Lost files Unable to decompress Bad
*Content :
*Captcha :
CodeBus is the largest source code store in internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.