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
| javascript:(function(){document.body.appendChild(document.createElement('script')).src='https://gist.github.com/allareri/7685975/raw/68a4f0636aa052912b7b575ab6dfbb9300a6b5df/twitter-bookmarklet.js';})(); |
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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include "linked-list.h" | |
| #define ASSERT_TRUE(cond) { \ | |
| if (!(cond)) { \ | |
| fprintf(stderr, "%s: " #cond " assertion failed\n", __func__); \ | |
| } \ | |
| } |
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
| func losslessDataCompression(inputString string, width int) string { | |
| result := "" | |
| var i int = 0 | |
| for i < len(inputString) { | |
| end := i + 1 | |
| var begin int | |
| if i < width { | |
| begin = 0 | |
| } else { | |
| begin = i - width |
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
| package main | |
| func packetDescrambler(seq []int, fragmentData []string, n int) string { | |
| maxSeqIdx := func(numSlice []int) int { | |
| max := numSlice[0] | |
| for _, n := range numSlice[1:] { | |
| if n > max { | |
| max = n | |
| } | |
| } |
OlderNewer