Insert a node at a specific position in a linked list

  • + 0 comments

    Problem has a confusing description. In the problem description tells you to return the list head node but the comments in the code tell you to return the whole list which can be confusing. INTEGER_SINGLY_LINKED_LIST should be INTEGER_SINGLY_LINKED_LIST_NODE (LIST HEAD)

     * The function is expected to return an INTEGER_SINGLY_LINKED_LIST.
         * The function accepts following parameters:
         *  1. INTEGER_SINGLY_LINKED_LIST llist
         *  2. INTEGER data
         *  3. INTEGER position