Skip to content

Instantly share code, notes, and snippets.

@brilliant-problems
Last active December 19, 2015 01:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save brilliant-problems/4ed337d6239acd25e06b to your computer and use it in GitHub Desktop.
Save brilliant-problems/4ed337d6239acd25e06b to your computer and use it in GitHub Desktop.
570
540
680
545
380
260
865
35
115
355
745
250
555
795
385
690
890
700
825
605
390
320
25
750
835
105
70
230
440
130
615
215
395
40
165
270
125
180
195
915
480
430
830
845
610
895
490
530
445
500
170
715
600
925
95
535
650
900
765
265
660
370
705
855
300
185
875
30
325
435
295
780
585
145
495
375
805
550
710
770
580
150
665
785
255
935
50
235
175
135
75
510
80
485
160
155
945
735
775
685
635
350
65
365
345
880
305
410
200
450
625
740
5
475
220
590
205
640
755
425
245
645
655
110
725
810
285
930
885
310
100
240
940
575
455
675
225
415
565
630
870
860
45
730
560
620
55
280
760
20
405
950
120
10
315
340
910
505
470
595
90
815
840
720
820
850
920
695
515
955
190
15
460
140
790
520
670
290
330
85
420
800
905
525
465
360
275
210
60
400
340
135
115
560
885
685
60
825
935
910
565
725
200
905
900
860
635
540
15
855
415
545
95
250
850
675
610
180
165
425
35
345
290
190
785
620
515
410
740
570
50
705
460
450
605
790
760
590
285
530
715
870
655
395
225
150
795
500
365
125
805
90
105
720
700
230
815
145
380
830
130
440
665
275
780
745
65
220
140
535
350
865
360
920
600
25
670
75
45
475
680
330
80
735
575
320
195
820
205
510
765
405
315
185
940
245
875
110
580
10
800
840
835
485
305
890
550
235
490
400
325
85
310
845
390
430
40
585
650
210
175
215
625
555
160
465
55
595
495
615
100
950
375
435
690
930
630
170
295
525
260
895
695
455
640
770
420
280
255
730
355
300
5
120
810
755
30
520
880
945
265
155
710
775
385
750
645
20
270
955
370
70
660
915
240
925
445
470
505
480
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment