This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | int count_spaces (FILE* f) { | |
| int spaces = 0; | |
| char chIn; | |
| for ( chIn = '\0'; chIn != '\n'; spaces += ( chIn = fgetc(f) ) == ' ' ); | |
| return spaces; | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /* | |
| takes the root of the tree, a new node | |
| where the last parent will be written to, | |
| a counter passed as 0, and max = inf | |
| The recursions can be unwrapped in the | |
| following pseudocode, based on Depth | |
| First Search | |
| visited = {} | 
NewerOlder