Search:

Type: Posts; User: krithi

Search: Search took 0.01 seconds.

  1. Thread: optimization

    by krithi
    Replies
    9
    Views
    2,252

    optimization

    hey guys,

    I have the following code :

    for (int =0;i<a.size();i++)
    {
    if(key==a[i])
    printf("found");break;
    }
  2. Thread: Strings

    by krithi
    Replies
    3
    Views
    1,362

    Strings

    1. Reverse words in a string (words are separated by one or more spaces). Now do it in-place.

    2. Strip whitespace from a string in-place


    Can anyone post more interesting and challenging...
  3. Thread: Count Bits

    by krithi
    Replies
    5
    Views
    2,528

    Count Bits

    How to count number of 1's in a 32 bit integer (do not loop throught the bits).

    thanx
    krithi
  4. Replies
    8
    Views
    5,615

    thanks quzah love krithi

    thanks quzah
    love krithi
  5. Replies
    8
    Views
    5,615

    i donot need any code i need an algorithm

    i donot need any code i need an algorithm
  6. Replies
    8
    Views
    5,615

    problems on arrays

    1. You are given an array with integers between 1 and 1,000,000. One integer is in the array twice. How can you determine which one? Can you think of a way to do it using little extra memory.

    2....
  7. Thread: test cases

    by krithi
    Replies
    10
    Views
    3,622

    Testing issues

    if anyone knows about the test cases for coke machine can they help me with the toaster problem too?
    thanx
  8. Thread: test cases

    by krithi
    Replies
    10
    Views
    3,622

    if anyone knows about the test cases for coke...

    if anyone knows about the test cases for coke machine can they help me with the toaster problem too?
    thanx
  9. Thread: test cases

    by krithi
    Replies
    10
    Views
    3,622

    test cases

    hey guys,
    can anyone give me the test cases to test

    1. State of the art Micro processor embedded Toaster
    2. Microprocessor Embedded Elevator system?
  10. Replies
    3
    Views
    1,513

    thanx for ur reply how do u remove the loop after...

    thanx for ur reply how do u remove the loop after u find it

    thanx
    krithi
  11. Replies
    3
    Views
    1,513

    loop in a linked list

    how to find a loop in a linked list and how to remove it after u find? possibly in constant space.

    thanx
    krithi
  12. Replies
    4
    Views
    1,493

    this should work ...

    this should work

    for(count=0;count<SIZE;count++)
    {
    a[count]=rand()%101+1;
    b[count]=a[count];
    printf("%4d",a[count]);
    }
Results 1 to 12 of 13