mirror of
https://github.com/krahets/hello-algo.git
synced 2026-08-31 04:17:14 +00:00
Simplify struct declarations of C.
Use PascalCase for all structs in C. SImplify n_queens.c Format C code for chapter of graph.
This commit is contained in:
@@ -72,12 +72,10 @@ static void printLinkedList(ListNode *node) {
|
||||
printf("%d\n", node->val);
|
||||
}
|
||||
|
||||
struct Trunk {
|
||||
typedef struct Trunk {
|
||||
struct Trunk *prev;
|
||||
char *str;
|
||||
};
|
||||
|
||||
typedef struct Trunk Trunk;
|
||||
} Trunk;
|
||||
|
||||
Trunk *newTrunk(Trunk *prev, char *str) {
|
||||
Trunk *trunk = (Trunk *)malloc(sizeof(Trunk));
|
||||
|
||||
Reference in New Issue
Block a user