Search:

Type: Posts; User: jawahar

Search: Search took 0.00 seconds.

  1. Replies
    7
    Views
    2,384

    Hi there...the algo u suggested would run in...

    Hi there...the algo u suggested would run in O(n-square) i guess....It is much better u hash the values as i told...is there anything wrong in my implementation...please correct me...

    cheers :)
  2. Replies
    13
    Views
    1,413

    hi there..... yeah....the decrement operator u...

    hi there.....

    yeah....the decrement operator u used made the difference...


    while(--n) f*=n;

    would fix the error(guess )
    cheers :)
  3. Thread: c

    by jawahar
    Replies
    5
    Views
    1,283

    yeah... :) :)....this is an overhead to CPU....it...

    yeah... :) :)....this is an overhead to CPU....it is doing nothing just eating away the cycles by noops :)...i was just looking at DELAY...that's wat i was tellin...time interval cannot be specified...
  4. Replies
    7
    Views
    1,031

    yeah....this is a better design..... :) cheers...

    yeah....this is a better design..... :)

    cheers :)
  5. Replies
    7
    Views
    2,384

    yeah....suppose int freq[256]; ////possible...

    yeah....suppose


    int freq[256]; ////possible alll characters....u might restrict the limit if u r using fixed set of chars

    for(int i=0;i<length;i++)
    freq[(int)s.at(i)]++

    this will count...
  6. Thread: c

    by jawahar
    Replies
    5
    Views
    1,283

    yeah....zacs7 is rite...if u r using some TurboC...

    yeah....zacs7 is rite...if u r using some TurboC or some compiler which doesn't support this system call then u can simply loop up null statement for undefined interval of time...I mean, the time...
  7. Replies
    7
    Views
    1,031

    yeah...that's cool....now i have a problem in...

    yeah...that's cool....now i have a problem in this....suppose am using this linked list with the definition provided...it is really very good as it is holding the addresses instead of data....so any...
  8. Replies
    9
    Views
    1,867

    yeah....instead of using feof it is better to use...

    yeah....instead of using feof it is better to use


    while( (ch=fgetc(from))!=EOF)

    this even avoids the over head of calling the function everytime...
    cheers :)
  9. Thread: Help needed!!

    by jawahar
    Replies
    4
    Views
    1,455

    hi ppl..thanx for the posts..... Cheers :)

    hi ppl..thanx for the posts.....
    Cheers :)
  10. hi....as you are interested in getting values of...

    hi....as you are interested in getting values of range [0,8]...wat i would suggest is maintain an array of that size...

    #define MAX 10


    int array[MAX];

    now,wat u have to do is some what...
  11. Thread: Help needed!!

    by jawahar
    Replies
    4
    Views
    1,455

    Help needed!!

    Hi ppl...
    Am very much new to this forum.I just learning C++...wanna clarify whether there is default object for any c++ class as in java or not!!!???
Results 1 to 11 of 11