TutorMe homepage
Subjects
PRICING
COURSES
SIGN IN
Start Free Trial
Aaron M.
Ivy League Computer Science Student
Tutor Satisfaction Guarantee
C Programming
TutorMe
Question:

Write a function to print the values of all nodes in a binary tree, in order.

Aaron M.
Answer:

void printAll(struct node *head) { if (head != NULL) { printAll(head->left); printf("%d\n", head->value); printAll(head->right); } }

Javascript Programming
TutorMe
Question:

Write a JavaScript function that can be used to add numbers via currying. E.g. curry(3)(2) == 5 //true

Aaron M.
Answer:

function curryAdd(n) { const fn = x => curryAdd(n + x) fn.valueOf = () => n return fn }

Web Development
TutorMe
Question:

What is the difference between a single page app architecture, that you might see implemented with a library like React, and a traditional template architecture?

Aaron M.
Answer:

With a single page app implementation, the code required to render the frontend is all sent with the initial http get request, and further interaction with the backend is mostly exchanging data (for instance with JSON). By contrast, a template architecture will send over new html for each page requested by the user.

Send a message explaining your
needs and Aaron will reply soon.
Contact Aaron
Ready now? Request a lesson.
Start Session
FAQs
What is a lesson?
A lesson is virtual lesson space on our platform where you and a tutor can communicate. You'll have the option to communicate using video/audio as well as text chat. You can also upload documents, edit papers in real time and use our cutting-edge virtual whiteboard.
How do I begin a lesson?
If the tutor is currently online, you can click the "Start Session" button above. If they are offline, you can always send them a message to schedule a lesson.
Who are TutorMe tutors?
Many of our tutors are current college students or recent graduates of top-tier universities like MIT, Harvard and USC. TutorMe has thousands of top-quality tutors available to work with you.