-
Updated
May 16, 2020
computer-science
Here are 2,061 public repositories matching this topic...
-
Updated
May 20, 2020 - Java
I think it makes more sense to return an empty array
// invalid input return null or throw an error
if (!setA || !setB) {
return null;
}
if (!setA.length || !setB.length) {
return [];
}
// or do nothing since the for loop will not trigger anyway
-
Updated
May 18, 2020
What about History?
Histories make men wise.
What about Network ?
-
Updated
May 18, 2020
-
Updated
May 8, 2020 - Shell
The link for the course above is dead and should be replaced by https://cs.brown.edu/courses/cs123/index.shtml. I'll create a pull request to address this issue as well.
有一幅以二维整数数组表示的图画,每一个整数表示该图画的像素值大小,数值在 0 到 65535 之间。
给你一个坐标 (sr, sc) 表示图像渲染开始的像素值(行 ,列)和一个新的颜色值 newColor,让你重新上色这幅图像。
为了完成上色工作,从初始坐标开始,记录初始坐标的上下左右四个方向上像素值与初始坐标相同的相连像素点,接着再记录这四个方向上符合条件的像素点与他们对应四个方向上像素值与初始坐标相同的相连像素点,……,重复该过程。将所有有记录的像素点的颜色值改为新的颜色值。
最后返回经过上色渲染后的图像。
示例 1:
输入:
image = [[1,1,1],[1,1,0],[1,0,1]]
sr = 1, sc = 1, newColor = 2
输出: [[2,2,2],[2,2,0],[2,0,1]]
解析:
在图像的正中间,(坐标(
-
Updated
Sep 27, 2019
-
Updated
May 18, 2020
-
Updated
May 14, 2020
-
Updated
May 18, 2020 - Shell
-
Updated
May 14, 2020 - HTML
-
Updated
May 18, 2020 - Swift
-
Updated
May 19, 2020 - Java
-
Updated
Apr 23, 2020 - JavaScript
Users should be able to sort books on basis of rating, year published, title etc.
See https://github.com/hackerkid/Mind-Expanding-Books/tree/master/app to setup development environment
-
Updated
May 20, 2020 - JavaScript
-
Updated
Apr 13, 2020
Some possible suggestions are - sites which teach algorithms, sites which interactively visualize different algorithms. Also, notebooks/question pages of ACM themed contests can be added.
-
Updated
Aug 17, 2019 - Ruby
-
Updated
May 17, 2020
-
Updated
Aug 18, 2018 - JavaScript
-
Updated
Mar 18, 2020
-
Updated
Aug 26, 2017 - TypeScript
-
Updated
May 6, 2020 - Jupyter Notebook
-
Updated
Jan 19, 2015
Improve this page
Add a description, image, and links to the computer-science topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the computer-science topic, visit your repo's landing page and select "manage topics."
What roadmap is this issue about?
What is this issue about?