in Others edited by
160 views
0 votes
0 votes

Which of the following data structures is most efficient in terms of both space and time to reverse a string of characters?

  1. Linked list
  2. Stack
  3. Array
  4. Tree

     

in Others edited by
by
160 views

3 Answers

0 votes
0 votes
i think linked list would be better ,it will take constant space  and O(n) time complexity.

What's your opinion

1 comment

I think it is STACK
0
0
0 votes
0 votes

Answer B stack

0 votes
0 votes
B Stack is appropriate data structure to reverse the charcaters of strings.

Related questions