Jump to content

one_der_ball

New Members
  • Posts

    6
  • Joined

  • Last visited

one_der_ball's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. ok so what I have got so far sequence = 4,8,12,5,6,4,8,12,9 (numbers or laters) the cycle is a funchion that will look for the maching sequence's and out put 4,8,12 i think im getting it this sound like im on the right track to any one?
  2. well now i know what to start learning about to solve the problem
  3. I have been trying to do it myself but i dont know were tobegin varry new to php. as far as home work, it is not just a question i found on the internet to push myself into learing more about php, and sad to say there was no sample data all i want is some insight on what to lookinto to find the ancers for myself but i dont know were to start on this
  4. First off hello every one this is my first post (since i just started learning php a week ago!) and to help me learn i have been finding php riddles to solve and i came across one that I am lost on how to go about solving ? wondering if i could get a nug in the right direction? anyway this is the question: Given a sequence, write a program to detect cycles within it. A file containing a sequence of numbers (space delimited). The file can have multiple such lines. Ensure to account for numbers that have more than one digit eg. 12. If there is no sequence, ignore that line. Print to stdout the first sequence you find in each line. Ensure that there are no trailing empty spaces on each line you print. I don't want to say it but this is scary to me right now but i don't want to give up on it either ?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.