If I have this vector:I would like to get the position of each unique number according to itself.At the moment I'm using:

## Do While Loops Versus For Loops in Java for Counting

Ok so this is a question that has probably been asked a thousand times, but none of them that I found really had an answer that I was particularly looking for. I have done much research on this topic but to no avail. My question is: When it comes to...

## Finding count of tuples with same first and third item in list of tuples

I have a list of tuples each with three items :I want to find number of tuples in the list with same first and third items, like with first item 1 and third item 2015, there are 4 tuples; with first item 2 and third item 2015, there are 4...

## No. of distinct subsequences of length 3 in an array of length n

How to calculate the number of distinct sub sequences of length 3 (or in general of length k < n) in an array of length n?