The Daily CLAD

Community Browser
cancel
Showing results for 
Search instead for 
Did you mean: 

CLAD2017 - Answer the Requirement - Remove Duplicate Numerics

SercoSteveB
Active Participant

You are tasked to write a VI?

INPUT(s): 1D Array (Numeric Array In) of I32 numerical values.

OUTPUT(s): 1D Array (Numeric Array Out) of I32 numerical values.

FUNCTION:  The VI must return in Numeric Array Out the contents of Numeric Array In with all duplicate values removed.

 

Which of the following VI satisfies those requirements?  NOTE:  Multiple answers may apply

 

Have a go at coding the VI yourself or expand the Spoiler tag to see the possible answers.

 

Spoiler

 

a)

Remove Duplicates A.png

b)

Remove Duplicates B.png

c)

Remove Duplicates C.png

d)

Remove Duplicates D.png

Comments
crossrulz
Knight of NI

B, C, D


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
SPK91
Member

B, C, D

vidya1825
Member

B,C,D

P Vidya sankar,

sankar06
Member

B,C,D

Happy to Wire
nik35324
Member

B,C,D

 

Spoiler
Remove Duplicate Numerics.png


 

 

 

Baltur
Member

B, C and D

alexderjuengere
Active Participant

duplicates_variant-attribute.png

A.Bernau
Member

Answer A)
1. Sorts the input array. So the order/sequence of the output array is different (wrong)
2. It deletes an element but uses the same index/numeration than before (wrong).

 

Answer B)
Should be a possible answer.
Running the snippet confirms answer B.

Answer C)
Should work, but I would prefer to use the shift register output.
Running the snippet confirms answer C.

 

Answer D)
Should work.
Running the snippet confirms answer C

 

So answer b, c, d

mini09
Active Participant

B, C, D

istan0227
Member

BCD