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 <stdlib.h> | |
#include <stdio.h> | |
typedef struct _Node { | |
char val; | |
struct _Node *next; | |
} Node; | |
Node *head[100005] = {}; | |
Node *tail[100005] = {}; |
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> | |
typedef struct Node { | |
int data; | |
struct Node *next; | |
struct Node *prev; | |
} Node; | |
Node *head; | |
Node *tail, *tmp; |
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"function.h" | |
Table* createTable() { | |
Table* t = malloc(sizeof(Table)); | |
int s; | |
scanf(" %d", &s); | |
t->tableSize = s; | |
return t; | |
} |
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<string.h> | |
#define to_lower(x) ( ('a' <= x && x <= 'z') ? x : (('A' <= x && x <= 'Z') ? x - 'A' + 'a' : -1 )) | |
char resultA[100000+5]; | |
char resultB[100000+5]; | |
char in[100000+5]; | |
char name[100000+5]; | |
char sentence[100000+5]; | |
int max = -1; |
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> | |
#define UP 0 | |
#define LEFT 1 | |
#define FRONT 2 | |
#define RIGHT 3 | |
#define BACK 4 | |
#define DOWN 5 | |
char rubiks[6][4]; |
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> | |
#define UP 0 | |
#define LEFT 1 | |
#define FRONT 2 | |
#define RIGHT 3 | |
#define BACK 4 | |
#define DOWN 5 | |
char rubiks[6][4]; |
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> | |
#define N 15+3 | |
int n, s, t; | |
int jumped[N] = {0}; | |
int color[N] = {0}; | |
int height[N] = {0}; |
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 <iostream> | |
#include <vector> | |
#include <algorithm> | |
#include <ctime> | |
#include <random> | |
double findMedian(std::vector<double> &arr, int l, int r) { | |
std::sort(arr.begin() + l, arr.begin() + r + 1); | |
int n = r - l + 1; | |
return arr[l + n / 2]; |
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 <iostream> | |
#include <vector> | |
#include <algorithm> | |
#include <ctime> | |
#include <random> | |
double findMedian(std::vector<double> &arr, int l, int r) { | |
std::sort(arr.begin() + l, arr.begin() + r + 1); | |
int n = r - l + 1; | |
return arr[l + n / 2]; |
NewerOlder