-
Updated
May 13, 2020 - Java
leetcode
Here are 3,475 public repositories matching this topic...
-
Updated
May 18, 2020 - Java
- We have BFS and DFS images in both Breadth First Traversal and Depth First Traversal. We should have illustrations in the respective sections.
-
Updated
May 18, 2020
有一幅以二维整数数组表示的图画,每一个整数表示该图画的像素值大小,数值在 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
Apr 19, 2020 - C++
-
Updated
Jul 17, 2019 - Python
-
Updated
May 13, 2020 - Java
-
Updated
May 16, 2020 - Jupyter Notebook
🚀 Feature Proposal
Adding leading zero in the question number will be an awesome feature for file explorer to sort files by the name.
-
Updated
Mar 13, 2020 - Java
-
Updated
Mar 26, 2020 - C++
-
Updated
May 17, 2020 - Swift
Given a blacklist B
containing unique integers from [0, N)
, write a function to return a uniform random integer from [0, N)
which is NOT in B
.
Optimize it such that it minimizes the call to system’s Math.random()
.
Note:
1 <= N <= 1000000000
0 <= B.length < min(100000, N)
[0, N)
does NOT include N. See [interval notation](https://en.wikipedia.org/wiki/Interval_\
Add new sections by GitbookIO editor is quite simple, but sometimes you may forget to add sections in SUMMARY.md.
It is easy to parse the title of source .md files and add it to the appropriate chapter position. I will implement this feature with Python.
-
Updated
Mar 13, 2020 - C++
-
Updated
May 12, 2020 - Java
-
Updated
May 6, 2020 - Go
-
Updated
Apr 17, 2020 - Go
-
Updated
May 18, 2020 - Java
-
Updated
Oct 16, 2019 - Java
-
Updated
Mar 5, 2020 - JavaScript
It'll be good to add an introduction into the readme for the basic information of the repo, such as where are the problems coming from, how do you pick problems into this repo, etc.

-
Updated
May 18, 2020 - C++
-
Updated
May 17, 2020 - Java
-
Updated
Apr 25, 2020 - Python
-
Updated
Oct 23, 2019 - Python
Improve this page
Add a description, image, and links to the leetcode topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the leetcode topic, visit your repo's landing page and select "manage topics."