1. Implement stack using queue 2. Merge two arrays and sort them in order as specified at runtime. The two arrays may share common entries between them, but the resultant array must not have duplicates.
Anonimo
Dim integers = {1, 2, 3, "a"} Dim characters = {"a", "b", "c", 1} Dim newArray As New ArrayList Dim count As Integer = 0 For Each item In characters If Not newArray.Contains(item) Then newArray.Add(item) newArray.Add(integers(count)) count += 1 End If Next For Each item In newArray MsgBox(item) Next