od -c filename will allow you to examine the file to see what format it is in .
dos2unix and unix2dos will convert between the two.
7! = 7*6*5*4*3*2*1
6! = 6*5*4*3*2*1
so
7! = 7*6!
= 7*(7-1)!
unsigned int Factorial(unsigned int n) {
unsigned int answer{1};
if (n > 1) {
answer = n * Factorial(n-1);
}
return answer;
}
Find(searchName, dataset);
Find the middleName in the data set
if the data set does not contain data
return not found.
if middleName == searchName
return found
else if middleName > searchName
//it is in the top half of the data set,
return Find(searchName, top half of the data set)
else
return Find(searchName, bottom half of the data set)
FloodFill(map, x,y)
if map[x][y] is valid and unfilled
make map[x][y] filled
FloodFill(x+1,y);
FloodFill(x-1,y);
FloodFill(x,y+1);
FloodFill(x,y-1);