Note that there are some explanatory texts on larger screens.

plurals
  1. POAlgorithm for getting the overlapping of a sequence of string in an array on another array
    primarykey
    data
    text
    <p>I wan to build an algorithm which able to give the overlapping indices of the elements found in the two arrays.</p> <p>e.g. I have two arrays of string</p> <p>Array1: {"a","c","h",<strong>"d","a","o","m"</strong>}</p> <p>Array2: {<strong>"d","a","o","m"</strong>,"c","e","o","m","c","z","e","l","p","v","c","z","c"}</p> <p>It should return me the indices of the array1 and array2 in this way</p> <p><em>x1,y1={3,6}</em> *x2,y2={0,3}*</p> <p>It means the sequence of the string in the array should match and as long as the string values match we need to do that and make sure that every record will be unique by their previous record matching. </p> <p>Waiting for the answers and responses , if questions then please let me know.</p> <p>Like an example, I have a table in database where i inserting the records, and every record which i want to insert should be very unique. So at a time of insertion, we do have an array of records which needed to insert in a batch. So if i say, I do have the record in the database table is in the form:</p> <p><strong>colum1</strong> hash1 hash2 hash3 hash4 hash5</p> <p>And I want to insert a bunch of records in the database which are in the form: hash3 hash4 hash5 hash6 hash7 hash8</p> <p>Then the resultant of the table should be loook like this <strong>colum1</strong> hash1 hash2 hash3 hash4 hash5 <em>hash6 hash7 hash8</em></p> <p>But, if the array which need to be inserted in the database will be in the format like hash2 hash3 hash4 hash6</p> <p>then it should be treated as a whole new entry and will be inserted in the database as a whole. </p> <p>Hope I am clear this time to elaborate my problem</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload