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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Experty</title> | |
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Montserrat"> | |
<link rel="stylesheet" href="./style.css"> |
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
require "kemal" | |
require "kemal-session" | |
require "db" | |
require "sqlite3" | |
require "secure_random" | |
require "json" | |
require "./utils" | |
require "./config" |
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 <iostream> | |
using namespace std; | |
class node { | |
public: | |
int data; | |
node *next; | |
}; | |
class Stack { |
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 <iostream> | |
struct node | |
{ | |
node *left; | |
node *right; | |
int data; | |
}; | |
class btree |
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 <iostream> | |
template <typename T> | |
struct Node { | |
T data; | |
Node *next; | |
}; | |
template <typename T> class List{ | |
private: |
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 <iostream> | |
using namespace std; | |
class Matrix { | |
private: | |
unsigned int row, col; | |
int **mat; | |
public: |
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
package main | |
import ( | |
"net/http" | |
"github.com/krypton97/GraphiQL" | |
"github.com/krypton97/HandleGraphQL" | |
"github.com/playlyfe/go-graphql" | |
) |
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 <iostream> | |
void printBinary(int x) | |
{ | |
// Termination case | |
if (x <= 0) | |
return; | |
// Recurse to the next bit | |
printBinary(x / 2); |
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 <iostream> | |
void bubble(int* arr, int length) { | |
int c{}; | |
for (int i = 0; i < length - 1; i++) { | |
if (arr[i] > arr[i+1]) { | |
arr[i] = arr[i]*arr[i+1]; | |
arr[i+1] = arr[i] / arr[i+1]; | |
arr[i]= arr[i] / arr[i+1]; | |
c++; |
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 <iostream> | |
#include <random> | |
int generator() { | |
using namespace std; | |
std::random_device rd; // obtain a random number from hardware | |
std::mt19937 random(rd()); // seed the generator | |
std::uniform_int_distribution<> range(1, 100); // | |
return range(random); |