2021年2月16日
摘要: void PrintMatrixClockwise(int** arr, int columns, int rows) { if (arr == nullptr || columns <= 0 || rows <= 0) return; int start = 0; while (columns > 阅读全文
posted @ 2021-02-16 21:53 Noora&w 阅读(32) 评论(0) 推荐(0) 编辑
摘要: void MirrorRecursively(BinaryTreeNode* pRoot) { if (pRoot == nullptr || (pRoot->m_pLeft == nullptr && pRoot->m_pRight == nullptr)) return; BinaryTreeN 阅读全文
posted @ 2021-02-16 21:03 Noora&w 阅读(45) 评论(0) 推荐(0) 编辑
摘要: struct BinaryTreeNode { int m_nValue; BinaryTreeNode* m_pLeft; BinaryTreeNode* m_pRight; }; bool HasSubTree(BinaryTreeNode* pRoot1, BinaryTreeNode* pR 阅读全文
posted @ 2021-02-16 20:53 Noora&w 阅读(22) 评论(0) 推荐(0) 编辑
摘要: void ReorderOldEven(int* arr, unsigned int length) { if (arr == nullptr || length == 0) return; int* pBegin = arr; int* pEnd = arr + length - 1; while 阅读全文
posted @ 2021-02-16 15:18 Noora&w 阅读(60) 评论(0) 推荐(0) 编辑