What is difference between relative and linear layout
Answers
Answered by
1
Answer:
A layout that organizes its children into a single horizontal or vertical row. ... Enables you to specify the location of child objects relative to each other (child A to the left of child B) or to the parent (aligned to the top of the parent).
Answered by
2
Answer:
Use two loops. In the outer loop, pick elements one by one and count the number of occurrences of the picked element in the inner loop. This method doesn't use the other useful data provided in questions like range of numbers is between 1 to n and there are only two repeating elements.
Similar questions
English,
6 months ago
Hindi,
6 months ago
Social Sciences,
6 months ago
English,
1 year ago
Math,
1 year ago