CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2009
    Posts
    89

    Intersection of arrays

    Given two sorted arrays A and B.
    Find the intersection of these arrays A and B.

    I heard that intersection can be found by using a variation of merge routine of the merge sort.


    Can you explain please in details and with example??

  2. #2
    Join Date
    Jan 2006
    Location
    Singapore
    Posts
    6,765

    Re: Intersection of arrays

    Why not describe the algorithm you have in mind? It should be pretty easy to figure out, methinks.
    C + C++ Compiler: MinGW port of GCC
    Build + Version Control System: SCons + Bazaar

    Look up a C/C++ Reference and learn How To Ask Questions The Smart Way
    Kindly rate my posts if you found them useful

  3. #3
    Join Date
    Jun 2009
    Posts
    89

    Re: Intersection of arrays

    I just gave a hint. I do not know this algorithm.
    If someone has any way to do that , so I will be happy to learn and know that .

    Thank you

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured