Returns the index of right child Examples: >>> priority_queue_test = PriorityQueue() >>> priority_queue_test.right(0) 2 >>> priority_queue_test.right(1) 4
(self, i)
| 141 | return 2 * i + 1 |
| 142 | |
| 143 | def right(self, i): |
| 144 | """ |
| 145 | Returns the index of right child |
| 146 | |
| 147 | Examples: |
| 148 | >>> priority_queue_test = PriorityQueue() |
| 149 | >>> priority_queue_test.right(0) |
| 150 | 2 |
| 151 | >>> priority_queue_test.right(1) |
| 152 | 4 |
| 153 | """ |
| 154 | return 2 * i + 2 |
| 155 | |
| 156 | def par(self, i): |
| 157 | """ |
no outgoing calls
no test coverage detected