Amazon Coding Question – Solved

5 Live
Delete Even Given a linked list of integers, return a linked list containing only nodes having odd integers in their node->data field. Example n=3 listHead=1->4->7 The linked list containing only nodes having odd integers is 1 -> 7. Function Description Complete the function deleteEven in the editor below. deleteEven has the following parameter(s): list listHead: a reference to the

Asked in: Amazon

Image of the Question

Question Image

All Testcases Passed βœ”



Passcode Image

Solution


Please login to view the solution


Related Questions

| Amazon has multiple delivery centers for the distribution of its goods. In one … |
| A user is using the Amazon fitness tracker and is engaged in a jumping exercise… |
| Amazon Kindle has several e-books that customers can purchase directly. There a… |
| The engineering team at an Amazon fulfillment center is optimizing n high-perfo… |
| The supply chain manager at one of Amazon's warehouses is shipping the last con… |
| Determine the highest value after executing n steps on an infinite 2D grid that… |