Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Advertising

advertising

related pastes to tag 'fib'

792183 - Jeff: fib ocaml
  1. let fib count =                                                                                                                               
  2.   let rec f length accum =                                                                                                                   
  3.     if length < count then                                                                                                                   
  4.       match accum with                                                                                                                       
  5.           x :: y :: xs -> f (length+1) ((x+y) :: accum)                                                                                       
  6.         | [x] -> failwith "local 'f' called but accum only has one starting element"                                                         
  7.         | [] -> failwith "local 'f' called but accum is empty"                                                                               
  8.     else                                                                                                                                     
  9.  
601376 - Eduard Gamonal: p1 upc fib
  1. #include <vector>
  2. #include <iostream>
  3.  
  4.  
  5. using namespace std;
  6.  
  7.  
  8. struct Info {
  9.  
worth-right
worth-right