Search:

Type: Posts; User: malwaregeek

Search: Search took 0.01 seconds.

  1. Yes in that case it could be definitely done in...

    Yes in that case it could be definitely done in linear time. But even in case of unsorted arrays, it could be done ,one of my friend told me to use hashmap, but I have no idea how to implement though...
  2. Replies
    5
    Views
    6,031

    Yes :cool:

    Yes :cool:
  3. Intersection of two arrays in O(n) complexity

    The question is to find the common elements in two arrays .The code which i wrote have the complexity of order n square.


    void main ()
    { int i,j;
    int a[]={1,2,3,4};
    int b[]={4,5,7,1};
    for...
  4. Replies
    5
    Views
    6,031

    Thanks. No compilation error !

    Thanks. No compilation error !
  5. Replies
    5
    Views
    6,031

    Deleting all nodes of link list

    Hi , there was a question asked in one of the interviews.. Delete all the nodes of link list..Let me know if I have written the correct code


    struct node
    {int data'
    struct...
Results 1 to 5 of 5