Skip to content

Instantly share code, notes, and snippets.

View Kiran01bm's full-sized avatar

kiran01bm Kiran01bm

View GitHub Profile
@Kiran01bm
Kiran01bm / gist:86f91b668abea18de82de15ac4bcdd78
Created July 18, 2019 03:12 — forked from psayre23/gist:c30a821239f4818b0709
Runtime Complexity of Java Collections
Below are the Big O performance of common functions of different Java Collections.
List | Add | Remove | Get | Contains | Next | Data Structure
---------------------|------|--------|------|----------|------|---------------
ArrayList | O(1) | O(n) | O(1) | O(n) | O(1) | Array
LinkedList | O(1) | O(1) | O(n) | O(n) | O(1) | Linked List
CopyOnWriteArrayList | O(n) | O(n) | O(1) | O(n) | O(1) | Array
@Kiran01bm
Kiran01bm / cpuprofiler.js
Last active May 17, 2020 04:07 — forked from danielkhan/cpuprofiler.js
nodejs v8 cpu profiler
/**
* Simple userland CPU profiler using v8-profiler
* Usage: require('[path_to]/CpuProfiler').init('datadir')
*
* @module CpuProfiler
* @type {exports}
*/
var fs = require('fs');
// v8-profiler-node8 is Based on v8-profiler-node8@5.7.0, Solved the v8-profiler segment fault error in node-v8.x.
@Kiran01bm
Kiran01bm / markdown-details-collapsible.md
Created February 10, 2021 02:01 — forked from pierrejoubert73/markdown-details-collapsible.md
How to add a collapsible section in markdown.

A collapsible section containing markdown

Click to expand!

Heading

  1. A numbered
  2. list
    • With some
    • Sub bullets