aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-11-22(btree)+binary tree cpp file with recipes in makefileAryadev Chavali
2021-11-22(list)+some flavour text for list program outputAryadev Chavali
2021-11-22(list)+filter functionAryadev Chavali
This generates a new list, and appends to it every time the current list value satisfies the condition. It then recursively calls the filter on the next value.
2021-11-22(list)+reduce functionAryadev Chavali
Basically accumulates values, check https://en.wikipedia.org/wiki/Fold_(higher-order_function) for more detail.
2021-11-22(list)+example for map in mainAryadev Chavali
2021-11-22(list)+map functionAryadev Chavali
void return, just maps f onto every value in the linked list till nullity.
2021-11-22(list)~NULL -> nullptrAryadev Chavali
C++ styling.
2021-11-21(list)+recursive reverse algorithm for singly linked listsAryadev Chavali
Pretty simple, returns the last node as that's the new root node. Uses default parameters to make sure the first node has next set to null.
2021-11-21(list)+general style change, use unary switches for checking nullAryadev Chavali
2021-11-20(General)+makefile for common recipes that I'll use in this projectAryadev Chavali
Just write a few lines and it saves so much time. Don't try to automate it too much though.
2021-11-20(list)+destructor function in structAryadev Chavali
Nice feature of C++, destructors make it kinda nice to do memory management. Though they don't fully reduce the pain lol
2021-11-20(list)+first test with appends and outputAryadev Chavali
Main now uses append and cout mechanisms for a simple program!
2021-11-20(list)+simple output mechanism via C++ streamsAryadev Chavali
cout has inbuilt support for multiple types, easier than using printf. Just have to ease the compiler into it
2021-11-20(list)~struct List is not necessaryAryadev Chavali
Slight whiplash from change to C++, can just use typename now.
2021-11-20(list)+list.cpp fileAryadev Chavali
Will have all the singly linked list algorithms I can think of, using the structure I have defined (template based singly linked list) and the simple append function I have added that also acts as the main method of creating an instance.
2021-11-20(General)+readmeAryadev Chavali