i Important Instructions & Guidelines
1 Data Structures
expand
Q1
10 questions, 1 mark each
Consider an array of integers A={14,1,5,5,4}. Consider an operation, O: "Right circular shift by 1 position". After performing operation on times, the value of
A[-1]+A[-2] is minimum. What is the value of n?
Ops: A.
02
B.
Ol
C.
O 3
D.
05
Answers
Answer will be 2
only 2 times shift is needed to get the minimum value
Answer:- The answer is option (A) 2.
The value of n will be = 2
About Data Structure:-
A data structure is a storage structure which is used to store and organize the provided data. It is a way of arranging the given data on a computer so that it can be accessed and updated as per requirement.
A data structure is not only used to organize the provided data, but it is also used for the processing, retrieving, and storing the data.
There are different types of basic and advanced data structures that are used in the almost every program or every software system that has been developed.
Data Structures are of two types:-
1. Linear data structure, and
2. Non-linear data structure.
To know more about the given topic above please go through the following
Link1:- https://brainly.in/question/40853444?
Link2:- https://brainly.in/question/42129264?
#SPJ2