Skip to content

Instantly share code, notes, and snippets.

View thevenice's full-sized avatar
🎯
Focusing

Prakash Pawar thevenice

🎯
Focusing
View GitHub Profile
@thevenice
thevenice / user.model.js
Last active January 11, 2021 04:21
user.model.js/ mongodb/ nodejs/ user model example
const mongoose= require('mongoose');
const crypto = require('crypto');
const userSchemaObject={
user_permanent_id:{
type: String,
required: true
},
username:{
type:String,
required: true,
"use strict";
class BinarySearchTree {
constructor() {
//initially root is null
this.root = null;
}
insertNumberNode(data, left = null, right = null) {