A compilation of programs written in MARIE Assembly Language. For each program, a description, some test cases, and the pseudocode are included.
A summary of the programs implemented is shown below:
arithmetic/
ββ addition of two large positive numbers
ββ division of any two integers with remainder and quotient
ββ modulo of any two positive integers
ββ multiplication of any two integers
data-structure/
ββ array/
β ββ binary-search
β ββ input & output
β ββ median
β ββ sum of elements in an array
ββ stack/
β ββ stack operations
misc/
ββ two-sum
ββ hello-world
number-theory/
ββ collatz-conjecture
ββ euclidean-algorithm
ββ fibonacci sequence
ββ primality-test
sorting/
ββ bubble-sort
Use MARIE.js or MarieSim to run the programs.
- Format all code
- Quicksort