Search:

Type: Posts; User: ahanf

Search: Search took 0.21 seconds.

  1. Thread: Odious number

    by ahanf
    Replies
    8
    Views
    1,028

    Re: Odious number

    ^int value i guess..here's the question..
    In odious number is a nonnegative number that has an odd number of 1s in its binary expansion. The first few odious numbers are therefore 1, 2, 4, 7, 8, 11,...
  2. Thread: Odious number

    by ahanf
    Replies
    8
    Views
    1,028

    Odious number

    hello everyone..i need help with this problem to determine a number whether its odious number or not.. im wondering how to convert a given number to its binary value.. any idea? thanks..
  3. Replies
    9
    Views
    589

    Re: Help needed for writing a code

    @kevin I tried till this point..

    got stuck there... I thought there is a way apply trim() method to the array to remove the spaces like String..
  4. Replies
    9
    Views
    589

    Re: Help needed for writing a code

    thanks.. I think i got what you have tried to told.. Will let you know if i again find any further problem..
  5. Replies
    9
    Views
    589

    Re: Help needed for writing a code

    ^Yes i tried.. I have took an array of characters.. But im not understanding how to remove the multiple spaces from that array.. Can you please explain how to do that?
  6. Replies
    9
    Views
    589

    Help needed for writing a code

    Write a function trim() that will take an array of characters as an input and remove multiple consecutive spaces from the array (You cannot use the String class in java)..

    Can anyone help me out?...
  7. Replies
    1
    Views
    503

    Need help to solve this problem

    Write a Java Code of a method that takes an array of integers (of positive and negative numbers) and the length or size of the array as parameters, then modifies the array by getting rid of the...
Results 1 to 7 of 7