Skip to content

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)

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
Issue origami icon

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 Issues
ProTip! 
Restrict your search to the title by using the in:title qualifier.
Issue origami icon

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 Issues
ProTip! 
Press the
/
key to activate the search input again and adjust your query.
Issue search results · GitHub