Search:

Type: Posts; User: getnitin15

Search: Search took 0.00 seconds.

  1. quzah.. I guess.. if(s[x]) would do as...

    quzah..
    I guess..


    if(s[x])


    would do as the base condition.. ain't it ?
  2. Replies
    14
    Views
    6,825

    try to simplify your functions.. going to greedy with your logic..

    try taking input in an array so that functions like large can be simplified..translates to lesser chances of a mistake and less typing :|


    int input[5];

    scanf ("%d %d %d %d %d", input,input +...
  3. Replies
    4
    Views
    1,771

    can try this..

    void binary(int number)
    {
    int i, count, temp = number;
    for(count = 0; number > 0; count++)
    {
    number /= 2;
    }
    number =temp; // try saving the input.. else you would have...
  4. :)

    He he.. was just wondering...just gave an interview in amazon... and the guy was trying to get me to optimize everything... need to get out of that shell.. xD
  5. Thanks...quzah and anduril462

    This was a disaster programming technique....hmm..I was using while rather than an if to check my base condition.. was stuck on this thing for so long....

    Thanks guys..


    Great example that...
  6. Hmm.. Have give that a read still seems fine.....

    Hmm.. Have give that a read still seems fine.. while debuging, the local variable or the formal argument 'input' always keeps pointing to the last character v. But according to my understanding it...
  7. string reverse. cannot find the bug in my code.

    Hello All,

    I have written a program to reverse a string using recursion. Have tried to dry run it , debug it but still can't find the issue. Below is my code:


    #include <stdio.h>
    #include...
Results 1 to 7 of 7