Cs1231s
Functions written in Source for NUS CS1231S students to quickly perform specific calculations.
Install / Use
/learn @rldefa/Cs1231sREADME
cs1231s finals algos
Written in Source (CS1101S) NUS
Current features:
- Find gcd of two numbers
- Find bezout's identity of two numbers
- Convert base 10 to desired base (support up to base 36)
- Convert from other bases to base 10
- Check whether an input is prime
- Calculate multiplicative inverse of a modulo n
- Given inorder and either preorder and postorder traversal of a tree, output the unique tree
- Count number of functions mapping A to B, with cardinalities m and n respectively
Feel free to use and share.
