Search found 1 match

by dopeorder
Thu Jan 15, 2015 2:57 am
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 320900

Re: 100 - The 3n + 1 problem

Can someone please tell me what is wrong with my code? I have submitted this more than 3 times and I still get an error!


#include <vector>
#include <stdio.h>
#include <iostream>
#include <algorithm>
using namespace std;

int find_cycle_length(int b)
{
// Finds the max cycle of b
int max_cycle ...

Go to advanced search