Skip to content

Instantly share code, notes, and snippets.

View YuliiaVeres's full-sized avatar

ladyDeBug YuliiaVeres

View GitHub Profile
#import <Foundation/Foundation.h>
@interface InviteManager : NSObject
- (void)inviteClients;
@end
@YuliiaVeres
YuliiaVeres / Array_flatten.txt
Last active April 4, 2016 18:18
Write some code, that will flatten an array of arbitrarily nested arrays of integers into a flat array of integers. (Let's consider we are in the ViewController)
// Suppose we are in some ViewController
- (void)viewDidLoad
{
[super viewDidLoad];
NSArray *first = @[@(1), @(2), @(3)];
NSArray *second = @[first, @(4)];
NSArray *third = @[@(6), @(7)];