Loading

上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 13 下一页
摘要: 这篇帖子是对常用的平行计算问题方法的汇总,俗话说API好学,但是算法难用。除了需要了解常用的并行计算API(MPI、Pthread、openMP),更重要是要学会如何将串行问题(serial programming)进行合理的拆分,从而编写出能够并行计算的程序。 程序顺序执行、串行编写比较符合咱们的 阅读全文
posted @ 2021-12-09 13:11 aalanwyr 阅读(448) 评论(0) 推荐(0) 编辑
摘要: Given the root of a binary tree, return the sum of every tree node's tilt. The tilt of a tree node is the absolute difference between the sum of all l 阅读全文
posted @ 2021-12-09 00:20 aalanwyr 阅读(28) 评论(0) 推荐(0) 编辑
摘要: Given head which is a reference node to a singly-linked list. The value of each node in the linked list is either 0 or 1. The linked list holds the bi 阅读全文
posted @ 2021-12-07 23:09 aalanwyr 阅读(53) 评论(0) 推荐(0) 编辑
摘要: We have n chips, where the position of the ith chip is position[i]. We need to move all the chips to the same position. In one step, we can change the 阅读全文
posted @ 2021-12-06 23:39 aalanwyr 阅读(45) 评论(0) 推荐(0) 编辑
摘要: The thief has found himself a new place for his thievery again. There is only one entrance to this area, called root. Besides the root, each house has 阅读全文
posted @ 2021-12-05 11:42 aalanwyr 阅读(27) 评论(0) 推荐(0) 编辑
摘要: Given an integer array nums, find a contiguous non-empty subarray within the array that has the largest product, and return the product. It is guarant 阅读全文
posted @ 2021-12-05 00:15 aalanwyr 阅读(26) 评论(0) 推荐(0) 编辑
摘要: MPI 即 Message-Passing Interface,提供了一系列并行编程的接口,为了在本机能够学习和使用并行编程,需要提前安装MPI; 配置环境: Microsoft Visual Studio Community 2019 MPI 安装MPI: 1、首先下载MPI,这里需要下载两个文件 阅读全文
posted @ 2021-12-03 16:02 aalanwyr 阅读(2042) 评论(1) 推荐(0) 编辑
摘要: Given the head of a singly linked list, group all the nodes with odd indices together followed by the nodes with even indices, and return the reordere 阅读全文
posted @ 2021-12-02 15:58 aalanwyr 阅读(36) 评论(0) 推荐(0) 编辑
摘要: You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping yo 阅读全文
posted @ 2021-12-01 09:29 aalanwyr 阅读(35) 评论(0) 推荐(0) 编辑
摘要: Given a rows x cols binary matrix filled with 0's and 1's, find the largest rectangle containing only 1's and return its area. Example 1: Input: matri 阅读全文
posted @ 2021-11-30 10:33 aalanwyr 阅读(51) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 13 下一页