MCQOPTIONS
Saved Bookmarks
This section includes 3 Mcqs, each offering curated multiple-choice questions to sharpen your Generating Permutations Multiple Choice knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What will be the output of the code that generates permutations and also has the ability to handle duplicates, for the input str[]= AA ? |
| A. | AA |
| B. | AA,AA |
| C. | A,A |
| D. | A |
| Answer» B. AA,AA | |
| 2. |
What is the time complexity of Heap s algorithm? |
| A. | O(n log n) |
| B. | O(n<sup>2</sup>) |
| C. | O(n*n!) |
| D. | O(n!) |
| Answer» E. | |
| 3. |
Heap s algorithm requires an auxiliary array to create permutations. |
| A. | true |
| B. | false |
| Answer» C. | |