Code Monkey home page Code Monkey logo

daily's Introduction

Hi there 👋 I'm 56

My Stats

my github stats languages

Here are some ideas to get you started:

  • 🔭 I’m currently working on ...
  • 🌱 I’m currently learning ...
  • 👯 I’m looking to collaborate on ...
  • 🤔 I’m looking for help with ...
  • 💬 Ask me about ...
  • 📫 How to reach me: ...
  • 😄 Pronouns: ...
  • ⚡ Fun fact: ... -->

daily's People

Contributors

ray-56 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

yy9306

daily's Issues

第一题:用递归算法实现,数组长度为5且元素的随机数在2-32间不重复的值

用递归算法实现,数组长度为5且元素的随机数在2-32间不重复的值

可以拆解为四小项:

  • 生成一个长度为5的空数组 arr
  • 生成一个(2-32)之间的随机整数 rand
  • 把随机数 rand 插入到数组 arr 内,如果数组 arr 内已存在与 rand 相同的数字,则重新生成随机数 rand 并插入到 arr 内 [需要使用递归实现,不能使用 for/while 等循环]
  • 最终输出一个长度为5,且内容不重复的数组 arr

第七题:描述 CSS 的权重计算规则

描述 CSS 的权重计算规则

<div class="red blue">啥颜色</div>
<div class="blue red">啥颜色</div>
.red { color: red; }
.blue { color: blue; }

两个 div 内容的颜色是什么?

第三十题:两数相加

给出两个 非空 的链表用来表示两个非负的整数。
其中,它们各自的位数是按照 逆序 的方式存储的,并且它们的每个节点只能存储 一位 数字。

如果,我们将这两个数相加起来,则会返回一个新的链表来表示它们的和。

假设除了数字 0 之外,这两个数都不会以 0 开头。

输入:(2 -> 4 -> 3) + (5 -> 6 -> 4)
输出:7 -> 0 -> 8
原因:342 + 465 = 807

第二十九题:什么是链表?

什么是链表?

构建单向列表

// 链表单元
function ListNode(val) {
    this.val = val;
    this.next = null;
}

写一个方法
输入:[1, 2, 3]
输出:3 -> 2 -> 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.