Motorola Mobility
Work in HR? Unlock Free Profile

Motorola Mobility Principal Staff Engineer Interview Question

"Write code for inserting a node in a doubly linked list."
Add Tags [?]

Part of a Principal Staff Engineer Interview Review - one of 193 Motorola Mobility Interview Reviews

Answers & Comments

of 0

public void insert(int index, int d){
        Node current = head;
            current =;
        Node temp =;
        Node inserted = new Node(temp, current, d); = inserted;
            temp.previous = inserted;

- Harsha on Apr 4, 2014

To comment on this question, Sign In with Facebook or Sign Up

Tags are like keywords that help categorize interview questions that have something in common.