Questions related to arrays, such as given a 2 integer array, find the common elements.
Answer / Roopali Sharma
To find common elements in two arrays, you can use a for loop and nested if statements. First, iterate through both arrays. For each element in the first array, check if it exists in the second array using an if statement. If it does, print or store the common element.
| Is This Answer Correct ? | 0 Yes | 0 No |
Is array immutable?
What is a treeset?
How will you represent a linked list in a graphical view?
How do treesets work internally?
You want to insert a new item in a binary search tree. How would you do it?
List the data structures which are used in hierarchical data model.
Which type of sorting is best?
Define level of the tree?
What are binary search and fibonacci search?
What are data structures in programming?
What is a queue in data structure?
Differentiate between list and set.