Amazon Coding Question – Solved

4 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

| You are given a board of size M Γ— N where each cell can be either empty ('O') o… |
| Undirected Coloured Graph Shortest Path You are given an undirected weight… |
| Village Voyage A computer game "Village Voyage" has N villages (labeled 1 to… |
| Academic Decathlon Students are being selected for an academic decathlon tea… |
| Sum of Arrays Given two arrays each of length n, arr1 and arr2, in one opera… |
| Count Swaps During Custom Sorting Analyze the efficiency of the following so… |