mirror of
https://github.com/krahets/hello-algo.git
synced 2025-11-02 12:58:42 +08:00
Format the C code in Clang-Format Style: Microsoft
This commit is contained in:
@ -53,6 +53,7 @@ void backtrack(vector<TreeNode *> &state, vector<TreeNode *> &choices, vector<ve
|
||||
}
|
||||
}
|
||||
|
||||
/* Driver Code */
|
||||
int main() {
|
||||
TreeNode *root = vecToTree(vector<int>{1, 7, 3, 4, 5, 6, 7});
|
||||
cout << "\n初始化二叉树" << endl;
|
||||
|
||||
@ -27,6 +27,7 @@ static void preOrder(TreeNode *root) {
|
||||
path.pop_back();
|
||||
}
|
||||
|
||||
/* Driver Code */
|
||||
int main() {
|
||||
TreeNode *root = vecToTree(vector<int>{1, 7, 3, 4, 5, 6, 7});
|
||||
cout << "\n初始化二叉树" << endl;
|
||||
|
||||
@ -21,6 +21,7 @@ static void preOrder(TreeNode *root) {
|
||||
preOrder(root->right);
|
||||
}
|
||||
|
||||
/* Driver Code */
|
||||
int main() {
|
||||
TreeNode *root = vecToTree(vector<int>{1, 7, 3, 4, 5, 6, 7});
|
||||
cout << "\n初始化二叉树" << endl;
|
||||
|
||||
@ -26,6 +26,7 @@ static void preOrder(TreeNode *root) {
|
||||
path.pop_back();
|
||||
}
|
||||
|
||||
/* Driver Code */
|
||||
int main() {
|
||||
TreeNode *root = vecToTree(vector<int>{1, 7, 3, 4, 5, 6, 7});
|
||||
cout << "\n初始化二叉树" << endl;
|
||||
|
||||
@ -19,6 +19,7 @@ void testPop(priority_queue<int> &heap) {
|
||||
printHeap(heap);
|
||||
}
|
||||
|
||||
/* Driver Code */
|
||||
int main() {
|
||||
/* 初始化堆 */
|
||||
// 初始化小顶堆
|
||||
|
||||
@ -34,6 +34,7 @@ vector<int> twoSumHashTable(vector<int> &nums, int target) {
|
||||
return {};
|
||||
}
|
||||
|
||||
/* Driver Code */
|
||||
int main() {
|
||||
// ======= Test Case =======
|
||||
vector<int> nums = {2, 7, 11, 15};
|
||||
|
||||
Reference in New Issue
Block a user