How to find duplicates in an array and remove them
efficiently?
Answer Posted / vishnu
Dim a(4)
a(0) = 1
a(1) = 4
a(2) = 5
a(3) = 4
a(4) = 5
For i = ubound(a)-1 to 0 step - 1
For j=0 to i
If a(j) = a(j+1) Then
a(j) = empty
ElseIf a(j)>a(j+1) Then
temp = a(j+1)
a(j+1) = a(j)
a(j) = temp
End If
Next
Next
For i=0 to ubound(a)
print a(i)
Next
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Where we can use the analog mode and where we can use the low – level mode?
Explain about the test fusion report of quicktest professional (qtp)?
terminal services client
.have you ever written compiled module? if yes , tell me about some of the function that you wrote.
What are the types of object repository?
Which scripting language used by quicktest professional (qtp)?
Explain the types of object repository?
how to test load test and block box testing an a web based application pls give ans briefly
How many types of recording facility are available in quicktest professional?
How to associate shared object repository to test in qtp?
ACTUALLY I AM WORKING IN THE DISTRIBUTION DOMAIN.MY COMPANY IS PROVIDING DISTRIBUTION SOFTWARE FOR PHARMA AND FMCG DISTRIBUTORS.HERE I AM USING QTP 9.2.HERE IN MY APPLICATION WHILE RECORDING ONE WINDOW APPEARS.IN THAT I CAN SELECT THE ITEM OR NO NEED TO SELECT.BUT WHILE RUNNING THE SAME SCRIPT THE WINDOW MAY NOT APPEAR OR APPEAR.HOW TO WRITE SCRIPT FOR THIS
What is exact meaning of Database Checkpoint in QTP 9.2 and what are the different types of the database check points?
What is checkpoint in qtp?
what is the diff b/w assistive and mandatary rules of object repository in QTP???
Hi any body pls help me for QTP 11.0 software free demo version. i have to practice. Kindly send the link.or where i have to download.