a) O(n)
b) O(n2)
c) O(n3)
d) O(2n)
What is the time complexity for a given pancake sort given it undergoes “n” flip operations?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
What is the time complexity for a given pancake sort given it undergoes “n” flip operations?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!