adds a todo for the next thing I can try
This commit is contained in:
@@ -4,6 +4,11 @@ search algorithms but uses built in javascript data structures
|
|||||||
to jump a bunch of steps, here I write everything from scratch
|
to jump a bunch of steps, here I write everything from scratch
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
next challenge to is write a function to read in a json file and
|
||||||
|
parse it as a tree???
|
||||||
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
@@ -32,6 +37,10 @@ Node* new_node(int value) {
|
|||||||
return (n);
|
return (n);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void json_file_to_tree(char* filepath) {
|
||||||
|
// TODO!!!!
|
||||||
|
}
|
||||||
|
|
||||||
void push(Stack* stack, Node* node) {
|
void push(Stack* stack, Node* node) {
|
||||||
if (stack->len == 0) {
|
if (stack->len == 0) {
|
||||||
stack->head = node;
|
stack->head = node;
|
||||||
|
|||||||
Reference in New Issue
Block a user