mirror of
https://github.com/krahets/hello-algo.git
synced 2025-11-02 21:24:53 +08:00
Bug fixes and improvements (#1380)
* preorder, inorder, postorder -> pre-order, in-order, post-order * Bug fixes * Bug fixes * Update what_is_dsa.md * Sync zh and zh-hant versions * Sync zh and zh-hant versions. * Update performance_evaluation.md and time_complexity.md * Add @khoaxuantu to the landing page. * Sync zh and zh-hant versions * Add @ khoaxuantu to the landing page of zh-hant and en versions.
This commit is contained in:
@ -90,11 +90,11 @@ int main() {
|
||||
|
||||
/* 获取栈的长度 */
|
||||
int size = stack->size;
|
||||
printf("栈的长度 size = %d\n", size);
|
||||
printf("栈的长度 size = %d\n", size);
|
||||
|
||||
/* 判断是否为空 */
|
||||
bool empty = isEmpty(stack);
|
||||
printf("栈是否为空 = %stack\n", empty ? "true" : "false");
|
||||
printf("栈是否为空 = %s\n", empty ? "true" : "false");
|
||||
|
||||
// 释放内存
|
||||
delArrayStack(stack);
|
||||
|
||||
Reference in New Issue
Block a user