Delete PrintUtil.h
This commit is contained in:
parent
547d51c1cb
commit
a4efe07aa7
@ -1,27 +0,0 @@
|
|||||||
/**
|
|
||||||
* File: PrintUtil.h
|
|
||||||
* Created Time: 2022-12-21
|
|
||||||
* Author: MolDum (moldum@163.com)
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
|
|
||||||
// #include "ListNode.h"
|
|
||||||
// #include "TreeNode.h"
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Print an Array
|
|
||||||
*
|
|
||||||
* @param arr array
|
|
||||||
* @param n array length
|
|
||||||
*/
|
|
||||||
static void printArray(int* arr, int n)
|
|
||||||
{
|
|
||||||
printf("[");
|
|
||||||
for (int i = 0; i < n - 1; i++) {
|
|
||||||
printf("%d, ", arr[i]);
|
|
||||||
}
|
|
||||||
printf("%d]\n", arr[n-1]);
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user