faddai

sample.txt

Sep 15th, 2014
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.15 KB | None | 0 0
  1. Given a one dimensional array of data write a function that returns
  2. a new array with the data reversed. Don't just use the reverse
  3. function that is built into your environment Write a quick and dirty program (Shell, Python, Perl, Java, Lisp,
  4. C++, APL, or whatever) to produce a count of all the different
  5. "words" in a text file. Use any definition of word that makes
  6. logical sense or makes your job easy. The output might look like
  7. this Write a function that returns M random non-negative integers less
  8. than some value N. Each integer must also be unique. As above,
  9. don't just use an existing function which already does produces
  10. these integers (although feel free to use the random number
  11. generator) Given a one dimensional array of data write a function that
  12. returns M random elements of that array. Each element must also
  13. be from a different position in the array Write a function that creates a node in a graph.
  14. Write a function that inserts a node as a child of another node.
  15. These functions should not allow cycles to be created. That is, a node may not directly or indirectly point to itself.
  16. Write a function to print out a graph (you can assume no cycles).
Advertisement
Add Comment
Please, Sign In to add comment