12 2019 档案

摘要:https://www.nowcoder.com/ta/js-assessment?query=&asc=true&order=&tagQuery=&page=1 查找数组元素位置 题目描述 找出元素 item 在给定数组 arr 中的位置 输出描述: 如果数组中存在 item,则返回元素在数组中的 阅读全文
posted @ 2019-12-27 15:10 _Zlrrr 阅读(743) 评论(0) 推荐(0)
摘要:https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/ In a list of songs, the i-th song has a duration of time[i] seconds 阅读全文
posted @ 2019-12-26 19:22 _Zlrrr 阅读(203) 评论(0) 推荐(0)
摘要:https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/ In a deck of cards, each card has an integer written on it. Return true if and only if y 阅读全文
posted @ 2019-12-26 19:17 _Zlrrr 阅读(240) 评论(0) 推荐(0)
摘要:https://leetcode.com/problems/find-all-duplicates-in-an-array/ Given an array of integers, 1 ≤ a[i] ≤ n (n = size of array), some elements appear twic 阅读全文
posted @ 2019-12-26 19:14 _Zlrrr 阅读(132) 评论(0) 推荐(0)
摘要:https://leetcode.com/problems/jump-game-ii/ Given an array of non-negative integers, you are initially positioned at the first index of the array. Eac 阅读全文
posted @ 2019-12-26 19:11 _Zlrrr 阅读(181) 评论(0) 推荐(0)
摘要:https://leetcode.com/problems/fibonacci-number/ The Fibonacci numbers, commonly denoted F(n) form a sequence, called the Fibonacci sequence, such that 阅读全文
posted @ 2019-12-26 19:09 _Zlrrr 阅读(174) 评论(0) 推荐(0)
摘要:https://leetcode.com/problems/is-subsequence/ Given a string s and a string t, check if s is subsequence of t. You may assume that there is only lower 阅读全文
posted @ 2019-12-26 19:08 _Zlrrr 阅读(176) 评论(0) 推荐(0)
摘要:一.原型链继承 特点:子类型的原型是父类型的一个实例对象 父类新增原型方法或原型属性子类都会访问到 简单易于实现 子类的实例通过 _proto_ 访问到父亲的实例 这样就可以访问父类的私有方法 然后通过 _proto_ 指向父类的 prototype 获得父亲原型上的方法 这样做到将父类的私有 公有 阅读全文
posted @ 2019-12-25 11:08 _Zlrrr 阅读(143) 评论(0) 推荐(0)
摘要:import React, {useState, useEffect} from 'react'; function Example() { const [count, setCount] = useState(0); useEffect(() => { document.title = `You 阅读全文
posted @ 2019-12-08 23:09 _Zlrrr 阅读(295) 评论(0) 推荐(0)