Skip to content

Instantly share code, notes, and snippets.

View pveyes's full-sized avatar
:electron:

Fatih Kalifa pveyes

:electron:
View GitHub Profile
@pveyes
pveyes / Preferences.sublime-settings
Last active January 3, 2016 01:19
My Sublime Text 3 Preferences
{
// My theme
"theme": "Spacegray.sublime-theme",
"color_scheme": "Packages/User/base16-ocean.dark (SL).tmTheme",
// Match Spacegray theme preview on Github
"bold_folder_labels": true,
"font_face": "Source Code Pro",
// force default line ending
#include <stdio.h>
int main() {
int graph[] = {2, 5, 1, 3, 1, 2, 1, 7, 7, 6};
int size = sizeof(graph) / sizeof(graph[0]);
int water = waterization(graph, size);
printf("%d\n", water);
return 0;
}
@pveyes
pveyes / fb-arithmetic.c
Last active January 3, 2016 00:09
My solution to Facebook Programming Challenge sample problem: Missing number in arithmetic sequence. Source: http://retina.pvey.es/solving-facebook-programming-challenge-sample-problem
#include <stdio.h>
int main() {
int input, val;
int init, delta = 0, newdelta;
int i;
scanf("%d\n", &input);
scanf("%d ", &init);