Search:

Type: Posts; User: newyork

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    1,256

    palindrom checker 12

    i need to write a function that inputs a number and tells if its palindrom or not
    i wrote a code which calculates the length of the number and gets each cycle the digit

    how to continue
    ?

    ...
  2. Replies
    53
    Views
    4,300

    in your base "if" what is the meaning of array...

    in your base "if"
    what is the meaning of array is true
    ?
    you are checking that there is a cell
    then the array is not NULL
    ?
  3. Replies
    53
    Views
    4,300

    i'll try and put it together thanks :)

    i'll try and put it together
    thanks :)
  4. Replies
    53
    Views
    4,300

    but i cant use 4 parameters in my function i can...

    but i cant use 4 parameters in my function
    i can use the array and its input only as input
  5. Replies
    19
    Views
    4,006

    the problem doesnt allow me to change the array...

    the problem doesnt allow me to change the array
    and i cant "iterate through the array" because its not an itterative problem ,it a recursive problem

    what base case should i use?
  6. Replies
    19
    Views
    4,006

    i cant "iterate through the array" because its...

    i cant "iterate through the array" because its not an itterative problem ,it a recursive problem

    what base case should i use?
  7. Replies
    19
    Views
    4,006

    but i want maximal sum as close as possible to N...

    but i want maximal sum as close as possible to N

    (<=N)
    it differs then just =N which you proposed
  8. Replies
    53
    Views
    4,300

    i am locked on the helping function solution i...

    i am locked on the helping function solution
    i cant figure out how you made it

    could you say a few words about your algorithm
    ?
  9. Replies
    19
    Views
    4,006

    it doesnt say there what base case to use

    it doesnt say there what base case to use
  10. Replies
    53
    Views
    4,300

    what is the base case ? i said that when i have...

    what is the base case
    ?
    i said that when i have i cell array return it
    if two cell array then return its subtraction

    is it ok
    or its wrong?
  11. Replies
    19
    Views
    4,006

    i need to know the basic logic of the solution...

    i need to know the basic logic of the solution
    recursive thinking differs itterative

    i can think of a base case where i have a array of 1 cell
    what should i do with it
    ?
  12. Replies
    19
    Views
    4,006

    i need to present the combination which will get...

    i need to present the combination which will get me as close as i can to N

    what are the base cases to use???
  13. Replies
    19
    Views
    4,006

    i want to know whats the base case and whats the...

    i want to know whats the base case
    and whats the itterative step

    i need to see the logic of it
  14. Replies
    19
    Views
    4,006

    i need to use here a string to strore to final...

    i need to use here a string to strore to final sequence

    how recursivly go by every combination of the array



    int max(int arr[],n)
    {
  15. Replies
    53
    Views
    4,300

    what is size_t? what is s_val? what is the role...

    what is size_t?
    what is s_val?
    what is the role of gap?
  16. Replies
    53
    Views
    4,300

    we dont need to look in allthe array for the...

    we dont need to look in allthe array for the smaleest
    we only need to look for cells which are on the right
    but we should get arr+1



    code]fall=arr[0]-smallest_num(arr+1,len,num);
  17. Replies
    19
    Views
    4,006

    recursive maximal combination

    i got a bag which can take "n" kilograms inside of him
    and i have a list of items in which each item has a different weight.

    i need to calculate a combination for which it will fill the bag as...
  18. Replies
    53
    Views
    4,300

    span(int array,int len,int num,int gap ) { ...

    span(int array,int len,int num,int gap )
    {
    if (len==1) return num;

    if some recursive calls
    }

    wow it 2:30 am i will try at it tommorow
    thanks
  19. Replies
    53
    Views
    4,300

    what is the strucrure of span function what it...

    what is the strucrure of span function
    what it does?
  20. Replies
    53
    Views
    4,300

    i am allowed to use only the array and its length...

    i am allowed to use only the array and its length in the signature of the function

    i did like you told here...
  21. Replies
    53
    Views
    4,300

    we have tried many ways could you give a hint...

    we have tried many ways

    could you give a hint regarding the way of solving it?
  22. Replies
    53
    Views
    4,300

    ok i did exactly like you told me but i have lots...

    ok i did exactly like you told me but i have lots of problems with the pointer part of the function

    in the largest fall function
    the main one
    i use smallest_num(int arr[],int len,int num); to...
  23. Replies
    53
    Views
    4,300

    you presume that the array is sorted but its not...

    you presume that the array is sorted but its not
    so we need to use a helping function to find the smallest value?
  24. Replies
    53
    Views
    4,300

    i wasnt told by my instructor to do so. i did it...

    i wasnt told by my instructor to do so.
    i did it because i build the function to split it into smaller subproblems with smaller arrays.
    http://i52.tinypic.com/mrqs1e.jpg

    in the end we will get...
  25. Replies
    53
    Views
    4,300

    yes helping recursive only function are allowed...

    yes helping recursive only function are allowed
    why my stopping conditions are wrong
    ?
Results 1 to 25 of 53
Page 1 of 3 1 2 3