Data Structures Interview Questions

Showing Questions 1 - 20 of 252 Questions
First | Prev | Next | Last Page
Sort by: 
Jump to Page:

    How to remove some keys in ArrayList

    This a class Employee containes eid and ename are datamembers. when these employee class objects are stored in arrary list
    i want to remove eid containes 100 and 1000
    plz replay to me


    • Mar 14th, 2014

    Use varray or nestet table to store the array list.
    the if want to remove use DELETE(n) method to specify the element to remove from the list.


    Marbles and Floors

    You have a 100-story building and a couple of marbles. You must identify thelowest floor for which a marble will break if you drop it from this floor. How fastcan you find this floor if you are given an infinite supply of marbles? What if youhave only two marbles?


    • Sep 6th, 2013

    U can use Binary search for this .. First start at last floor say 100 .. If it breaks ( remember we do not know how strong the marble is ) .. then go to floor 50 .. if it breaks go to 25th floor .. if...


    • Sep 2nd, 2013

    Solution when we have only two marbles Use below sequence to find out correct floor 14,13,12,11,10,9,........... First drop the first marbel on floor 14th, if marbel breaks go to lower floor till 1s...


    What is the size of a void pointer ?

    Niyas Ibrahim

    • Sep 2nd, 2013

    Use of pointer is to store a memory address.since any location in the memory have same type(characters or digits) of memory address, size is same for all pointer types.


    • Dec 29th, 2012

    Size of void pointer or size of character pointer are same because both variable contain address or we can say memory location


    Linear and Non-Linear Data Structures

    Explain what are linear data structure & non-linear data structure?

    Lovelyn Rose

    • Jul 2nd, 2013

    In a linear data structures, if we traverse from an element, we can strictly reach only one other element. In a non-linear data structure, traversing from an element can lead lead to more than one element.


    • Aug 13th, 2011

    Linear data structure: A linear data structure traverses the data elements sequentially, in which only one data element can directly be reached. Ex: Arrays, Linked Lists Non-Linear data structure: Ev...