India’s Best Job Seekers and Training Platform Forums Data Structure You are given a double linked list and an array of pointers …

  • You are given a double linked list and an array of pointers …

     Akash  updated 10 months, 3 weeks ago 1 Member · 1 Post
  • Akash 

    Administrator
    at

    You are given a double linked list and an array of pointers to elements in this list (no assumptions can be made on the array – number of pointers, order and duplicates allowed).
    Return the number of sequences of elements (groups of consecutive elements), pointed by the array.
    For example, if this is the array (number relates to index in the list, not the actual pointer value): 9,1,3,7,8,5,2.
    Then output is 3, representing these sequences: [1,2,3], [5], [7,8,9]

Log in to reply.

Original Post
0 of 0 posts June 2018
Now
KodNest Training New Batch is starting on 5th October 2020. Attend one week free demo classes.Register Now

New Report

Close