摘要: // eslint exercise 4 (no-console) // When you're finished with this exercise, run // "npm start exercise.eslint.5" // to move on to the next exercise 阅读全文
posted @ 2020-01-23 21:25 Zhentiw 阅读(206) 评论(0) 推荐(0)
摘要: function looksLike(a, b) { return ( a && b && Object.keys(b).every(bKey => { const bVal = b[bKey] const aVal = a[bKey] if (typeof bVal 'function') { r 阅读全文
posted @ 2020-01-23 20:39 Zhentiw 阅读(174) 评论(0) 推荐(0)
摘要: // eslint exercise 1 (no-console) // When you're finished with this exercise, run // "npm start exercise.eslint.2" // to move on to the next exercise 阅读全文
posted @ 2020-01-23 20:37 Zhentiw 阅读(304) 评论(0) 推荐(0)
摘要: Given a singly linked list, determine if it is a palindrome. Example 1: Input: 1->2 Output: false Example 2: Input: 1->2->2->1 Output: true /** * Defi 阅读全文
posted @ 2020-01-23 04:34 Zhentiw 阅读(160) 评论(0) 推荐(0)