Skip to content

Instantly share code, notes, and snippets.

View awwalm's full-sized avatar
💻
Open to Work

Awwal M. awwalm

💻
Open to Work
  • Qatar
  • 03:49 (UTC +03:00)
  • LinkedIn in/awwalm
View GitHub Profile
@awwalm
awwalm / unique_bst.md
Last active March 20, 2024 02:18
Unique Binary Search Trees

Constructing Unique Binary Search Trees

Q: Via Quora

Given the set of keys {6, 7, 1, 4, 2}, how many unique binary search trees of height 2 are possible? Draw the trees. Assume that the height of the root-node is zero.

A:

There are 6 unique Binary Search Trees (BST) of height 2 that can be constructed from the key set $\{ 6, 7, 1, 4, 2 \}$ when all keys are used. Furthermore, there are 36 total BSTs of height 2 that can be constructed from said key set.

@awwalm
awwalm / Eratosthenes Benchmark.md
Last active April 29, 2024 19:17
The Sieve of Eratosthenes: Empirical Analysis and Visualization of Various Approaches
Empirical Analysis and Visualization of Various Approaches to the Sieve of Eratosthenes
@awwalm
awwalm / zpl-quick-reference.md
Created September 13, 2022 18:26 — forked from metafloor/zpl-quick-reference.md
ZPL Quick Reference

ZPL Commands

Command Format Description
^A ^Afo,h,w,d:f.x Use Scalable/Bitmapped Font
^A@ ^A@o,h,w,d:f.x Use Font Name to Call Font
^B0 ^B0a,b,c,d,e,f,g Aztec Bar Code Parameters
^B1 ^B1o,e,h,f,g Code 11 Bar Code
^B2 ^B2o,h,f,g,e,j Interleaved 2 of 5 Bar Code
^B3 ^B3o,e,h,f,g Code 39 Bar Code