How to find duplicates in an array and remove them
efficiently?
Answer Posted / crazy boy
**How to find duplicates in an array and remove them efficiently?
=================================================
dim a(4)
a(0)=10
a(1)=20
a(2)=10
a(3)=20
a(4)=50
for i=0 to ubound(a)
for j=i+1 to ubound(a)
if a(i)=a(j) then
a(i) =empty
end if
next
next
for i=0 to ubound(a)
if a(i)<>"" then
msgbox a(i)
end if
next
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Anybody plz give, How do you test aframe in a web page? If page cotain text message or Images, tables?
Hi Friends, Im planning to do certifcation in mercury Automation Tool QTP.But I Didnt get any clear details regarding course syllabus, fees, where to approach, and which certification would be useful for the experienced testers? can any one send me the details?
In QTP can we feed the out of one browser(internet explorer) as an input to the another browser(mozilla firefox)? If yes explain how to do it with an example.
What is RTM (require ment tracebulity marix) fromate?
how to evalute defects in QTP script?
What are the different types of functions available in qtp and explain ?
What is object spy in quicktest professional?
your coming from electrical backgroung..but y ur coming to software side?
What is the syntax to call one script from another?
How you know that a test case is a regression test case
HOw to add the recovery file at runtime to the test file .
Define virtual object?
whow much strong on VB and C?
I am having major problems with some DB Table Checkpoints I add to my script. I 35 web based applications recorded and each has DB Table Checkpoints insert but only 1 script isn't recognizing the DB Table Checkpoints for some reason. I've checked the DB connections and the info in the Library Functions and still only this one script out of 35 doesn't recognize the DB Table Checkpoints. Can someone please help me figure out why only this one script out of 35 that's hitting the same database is having a problem.
How to data driven test for Win objects in QTP ?