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
import express from "express"; | |
import dotenv from "dotenv"; | |
import morgan from "morgan"; | |
import rateLimit from "express-rate-limit"; | |
import helmet from "helmet"; | |
import cookieParser from "cookie-parser"; | |
import hpp from "hpp"; | |
import mongoSanitize from "express-mongo-sanitize"; | |
import cors from 'cors' |
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<vector> | |
using namespace std; | |
template<typename T> | |
class TreeNode { | |
public: | |
T data; | |
vector<TreeNode<T>*> children; | |
TreeNode(T data) { | |
this->data = data; |