Firstly, we define a result linkedlist by malloc.Secondly, we set while(1), then traverse the list and record the node with smallest val, and record the index k of the linkedlist.Thirdly, once we find the node with smallest val, then we append the node to the result linkedlist, and set the head of t...