closed by
306 views

1 Answer

0 votes
0 votes
Let the A[5] = {2, 4,  5, 1, 3]

If you do the transformation as mentioned to get array B, we will get

B[5] = {4, 1, 5, 2, 3}
B is not sorted so (A) is false.

Option (B) is correct as array B is permutation of array A, Option (D) will be false.

Option (C) is false because if we do the same transformation on array B we will get same array as A.

Related questions

0 votes
0 votes
0 answers
1
amitqy asked Nov 23, 2018
369 views
2 votes
2 votes
1 answer
3
Souvik33 asked Nov 23, 2022
302 views
If L and $L^{c}$ both are CFL, the L must be DCFL a. TRUE b.FALSE
0 votes
0 votes
0 answers
4
Neelu Lalchandani asked Nov 2, 2022
325 views
Time Complexity in C will be O(n) right? and big omega (n) is also big omega (n^2), then why is c incorrect?