Skip to content

Instantly share code, notes, and snippets.

View bytrangle's full-sized avatar

Trang Le bytrangle

View GitHub Profile
@stereokai
stereokai / index.css
Created June 18, 2017 11:03
Trigonometry in CSS
//----------------------------------*\
// TRIGONOMETRY FUNCTIONS
//----------------------------------*/
// # Trigonometry in CSS
//
// - Through Taylor/Maclaurin polynomial representation: http://people.math.sc.edu/girardi/m142/handouts/10sTaylorPolySeries.pdf
// - Useful if you don't want to use JS.
// - With CSS Variables.
// - `calc()` can't do power (x ^ y) so I used multiplication instead.
@xpcoffee
xpcoffee / 0-bottom-up-mergesort.md
Last active March 22, 2023 10:28
Bottom Up Mergesort.

These are part of my notes for the Coursera course: Algorithms, Pt I (Princeton).
Information on basic Mergesort can be found here.

##Bottom-Up Mergesort

####Concept

  • we know :
    • normal Mergesort recurs, halving the array until we hit sub-arrays/ranges of size 1
    • it is only from here that sorting starts to happen
  • instead of recurring down from the full array, start with ranges of size 1