This file contains 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 <stddef.h> | |
#include <stdio.h> | |
#include <ctype.h> | |
int main(int argc, char** argv) | |
{ | |
FILE *fp; | |
char buffer[4096]; | |
int total_words = 0; |
This file contains 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 <stdlib.h> | |
#include <stdio.h> | |
#include <limits.h> | |
#include <string.h> | |
struct node_s { | |
char *key; | |
char *value; | |
struct node_s *next; | |
}; |
This file contains 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
# Note, these functions are only for reversing lists in Python. | |
# In Python, strings are immutable, meaning you can't change their value. | |
# In other languages, like Ruby, this would be possible. | |
# If you want to reverse a string, you can use .split(), but that | |
# returns a list of characters, which means you are no longer doing | |
# it in place. This gives you O(n) space complexity. | |
# O(n) space, because the new list could be arbitrarily large | |
# O(n) time to go through each item in list. |
This file contains 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
import json | |
import sys | |
from collections import defaultdict | |
import comm | |
import comm_nonblock | |
def main(): | |
args = sys.argv[1:] |
This file contains 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
tz | count | |
---|---|---|
0 | 45 | |
+1 | 145 | |
+2 | 147 | |
+3 | 1 | |
+5.5 | 76 | |
+5.75 | 1 | |
+7 | 1 | |
+9.5 | 1 | |
+12 | 1 |