REST, standing for Representational state transfer, it lets the browser interact with the server and get things done without knowing anything about the server, the resources it has and the background operations used to perform the requested task. I far prefer REST APIs over SOAP any day! Take a look at the RESTful cookbook below to become familiar with Howto’s and […]
Here is a short insert on how to remove all Nodes of X value from a list. I use recursion and I believe I’ve created a pretty clean solution. This requires Nodes found in my earlier post. Let me know if you have any comments or improvements!
So this will pretty much wrap up our short expedition into binary trees. Remember that these functions rely on my earlier posts dealing with the class and nodes. The three types of traversals we will look at are: Preorder (root, left, right) Inorder (left, root, right) Postorder (left, right, root) Preorder Traversal This type of traversal can be used to […]
For a brief moment I was famous on Wikipedia! They removed me pretty soon after I add myself….
I found the basis of a print on Stackover flow the other day and changed it a little bit to be more compatible across compiler versions. Happy Coding! For some reason my code editor wouldn’t do the left slashes so below is a screenshot. Here is an example of what it will look like for the sequence 5 7 4 […]
This is just for fun, maybe you’ll learn something!
Here is a really basic binary tree class, it just includes the basics of creating, inserting, erasing, and returning size. In later posts I will talk about printing and traversals. This class also uses the Node.h talked about in this earlier post. You’ll notice that I really like to use recursion, I think this is cleaner than looping. Let me […]
Here is just a simple example of reading a file with iostream. Just follow my comments to understand. Good luck, sometimes newlines and spaces can mess you up, you may need to utilize an ignore() or something else.
I wanted to time some functions to measure performance of different types of functions in order to find what action was optimal. Here is my code for measuring the time of a C++ action. Basically, you collect a start clock() and a end clock() then find the total time it took to perform something by taking the difference between the […]
I am taking a slight break from C++, going back to Python, one of my favorite languages ever! I found the following material on structuring Python code and it is great! Posting it here so I can always come back to it. I recommend it to all the Python enthusiast looking at ways to improve their coding structure. Intermediate and […]