Skip to content

Instantly share code, notes, and snippets.

@jakehawken
Last active March 13, 2017 22:07
Show Gist options
  • Save jakehawken/7d24fa44ebaa1d92e650 to your computer and use it in GitHub Desktop.
Save jakehawken/7d24fa44ebaa1d92e650 to your computer and use it in GitHub Desktop.
#import <Foundation/Foundation.h>
@interface Solver : NSObject
+ (void)findSolutionForInput: (NSArray*)input;
@end
@interface Solver()
{
}
@end
@implementation Solver
+ (void)findSolutionForInput: (NSArray*)input
{
NSString *solution = [NSString stringWithFormat:@"Solution!"];
printf("%s", [solution UTF8String]);
}
@end
int main (int argc, const char * argv[])
{
@autoreleasepool
{
NSArray *input = @[];
[Solver findSolutionForInput:input];
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment