Skip to content

Instantly share code, notes, and snippets.

View mveteanu's full-sized avatar

Marian Veteanu mveteanu

View GitHub Profile
@mveteanu
mveteanu / README.MD
Last active June 15, 2021 10:07
Caesar Cipher in JavaScript
@mveteanu
mveteanu / README.MD
Last active February 22, 2022 00:57
Process hierarchical data using recursion or stack

Process hierarchical data using recursion or stack

This is an example of how to process data in hierarchical structures using either recursion or a stack based approach. To examplify this we will use a didactical example: find the maximum number in an array of arrays. The same techniques can be used to find / process data in other hierarchical structure such as XML documents, JSON objects, etc.

@mveteanu
mveteanu / README.md
Last active January 18, 2017 15:18
Encapsulation in JavaScript

Encapsulation in JavaScript

These examples shows to JavaScript programmers coming from standard OOP languages how to achieve encapsulation in JavaScript.

To try these examples, just download the gist on your local computer and open the .html files.

Alternatively, you can play with these examples online via jsbin.com: