Skip to content

Instantly share code, notes, and snippets.

Nathan Arnold nbarnold01

Block or report user

Report or block nbarnold01

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:4d34bd2c3adc3bb019a1
//
// main.m
// Pangrams
//
// Created by Nathan Arnold on 10/31/15.
// Copyright © 2015 Nathan Arnold. All rights reserved.
//
#import <Foundation/Foundation.h>
View Hacker Rank: Lonely Integer
#import <Foundation/Foundation.h>
int main(int argc, const char * argv[]) {
@autoreleasepool {
// insert code here...
NSCountedSet *numbers = [[NSCountedSet alloc]initWithCapacity:100];
int count = 0;
View Hacker Rank: Flipping Bits
//
// main.m
// Flipping Bits
//
// Created by Nathan Arnold on 11/1/15.
// Copyright © 2015 Nathan Arnold. All rights reserved.
//
#import <Foundation/Foundation.h>
View Hacker Rank: Stock Maximize
//
// main.m
// Stock Maximize
//
// Created by Nathan Arnold on 11/1/15.
// Copyright © 2015 Nathan Arnold. All rights reserved.
//
#import <Foundation/Foundation.h>
View Hacker Rank: Gemstones
#import <Foundation/Foundation.h>
int main(int argc, const char * argv[]) {
@autoreleasepool {
// insert code here...
int numOfStones = 0;
scanf("%d", &numOfStones);
NSMutableArray *stoneList = [NSMutableArray arrayWithCapacity:numOfStones];
View Hacker Rank: Alternating Characters
#import <Foundation/Foundation.h>
int deletionsRequiredForString (char buffer[], int length) {
int deletions = 0;
if (length > 1) {
View Hacker Rank: Breadth First Search: Shortest Reach
//Enter your code here. Read input from STDIN. Print output to STDOUT//
// main.m
// Breadth First Search: Shortest Reach
//
// Created by Nathan Arnold on 11/1/15.
// Copyright © 2015 Nathan Arnold. All rights reserved.
//
#import <Foundation/Foundation.h>
View Hacker Rank: Angry Professor
//
// main.m
// Angry Professor
//
// Created by Nathan Arnold on 11/9/15.
// Copyright © 2015 Nathan Arnold. All rights reserved.
//
#import <Foundation/Foundation.h>
View Hacker Rank: Sherlock and the Beast
//
// main.m
// Sherlock and the Beast
//
// Created by Nathan Arnold on 11/9/15.
// Copyright © 2015 Nathan Arnold. All rights reserved.
//
#import <Foundation/Foundation.h>
View Hacker Rank: Sherlock and Array
//
// main.m
// Sherlock and Array
//
// Created by Nathan Arnold on 11/9/15.
// Copyright © 2015 Nathan Arnold. All rights reserved.
//
#import <Foundation/Foundation.h>
You can’t perform that action at this time.