View previous topic :: View next topic
|
Author |
Message |
Harish Pisharody
New User
Joined: 24 Nov 2007 Posts: 5 Location: Bangalore, India
|
|
|
|
Hi,
I was asked this question in an interview :
How to get the occurs of a particular element in an array if we have the displacement. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
If all you have is the displacement, you cannot get the occurrence number. You must have at least the displacement and the length of an individual occurrence to compute the occurrence number. |
|
Back to top |
|
|
Harish Pisharody
New User
Joined: 24 Nov 2007 Posts: 5 Location: Bangalore, India
|
|
|
|
Thanks Robert !!! |
|
Back to top |
|
|
|