issues Search Results · repo:chihungyu1116/leetcode-javascript language:JavaScript
Filter by
5 results
(64 ms)5 results
inchihungyu1116/leetcode-javascript (press backspace or delete to remove)nyz123
- Opened on Mar 9, 2019
- #26
result.push(output.slice()); 为什么这里不能直接push output? 我自己在写的时候遇到这个问题,直接push进去会是一个空数组? 但是打印出来却是有值的
output不就是一个数组吗,为什么还需要特殊处理呢?
zgw010
- Opened on Nov 4, 2018
- #25
I tried your code of 190 and it didn t pass. I recommend my solution:
/**
* @param {number} n - a positive integer
* @return {number} - a positive integer
*/
var reverseBits = function(n) {
var ...
bilong
- 1
- Opened on Mar 29, 2016
- #2
var twoSum = function (nums, target) {
var hash = {};
for (var i=0;i nums.length;i++) {
var found = hash[nums[i]];
if (found) {
return [found, i+1];
} else {
hash[target-nums[i]] ...
jhanink
- Opened on Feb 4, 2016
- #1

Learn how you can use GitHub Issues to plan and track your work.
Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub IssuesProTip!
Restrict your search to the title by using the in:title qualifier.
Learn how you can use GitHub Issues to plan and track your work.
Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub IssuesProTip!
Press the /
key to activate the search input again and adjust your query.