Skip to content

Instantly share code, notes, and snippets.

View pedroanicetoo's full-sized avatar
🐶

Pedro Aniceto pedroanicetoo

🐶
  • Goiânia - Goiás
  • 03:40 (UTC -03:00)
  • X @pedrongou
View GitHub Profile

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

@jamesyang124
jamesyang124 / red_black_tree_revisited.md
Last active May 8, 2023 01:51
Red black tree in ruby.

Red Black Tree revisit.

TIME
INSERTION O(log n)
DELETION O(log n)
SEARCH O(log n)

| SPACE | O(n) |

require 'rubygems'
require 'sinatra'
require 'redis'
# To use, simply start your Redis server and boot this
# example app with:
# ruby example_note_keeping_app.rb
#
# Point your browser to http://localhost:4567 and enjoy!
#