chenbingweb

Results 4 comments of chenbingweb

/** * @param {string} s * @return {boolean} */ let objs={ '(':')', '{':'}', '[':']' } var isValid = function(s) { if(s=='') return true if(s.length

var twoSum = function(nums, target) { let arr=[]; for(let i=0;i

``` var reverseList = function(head) { let cur = head; let pre =null; while(cur){ let temp = cur.next; cur.next=pre; pre = cur; cur=temp } return pre }; ``` 执行用时 :60...

``` var hasCycle = function(head) { let fast = head; let slow = head; while (fast != null) { if (fast.next == null || fast.next.next == null) return false; fast...