B Bảo Vy Member Sep 21, 2021 #1 What is the time complexity for splitting the string into two new string in the rope data structure? A. O (n$^{2}$) B. O (n!) C. O (log n) D. O (1)
What is the time complexity for splitting the string into two new string in the rope data structure? A. O (n$^{2}$) B. O (n!) C. O (log n) D. O (1)
L Leo Tường Member Sep 21, 2021 #2 Answer: c Explanation: In order to perform the splitting on the rope data structure, one can split the given string into two new string S1 and S2 in O (log n) time. So, the time complexity for worst case is O (log n). Upvote 0 Downvote
Answer: c Explanation: In order to perform the splitting on the rope data structure, one can split the given string into two new string S1 and S2 in O (log n) time. So, the time complexity for worst case is O (log n).