• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • YouClaw
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
LilyLiya
博客园    首页    新随笔    联系   管理    订阅  订阅
01 2021 档案
Exploring Modules

摘要:module.exports; Requiring a directory 阅读全文
posted @ 2021-01-31 04:24 LilyLiya 阅读(51) 评论(0) 推荐(0)
Node js Intro

摘要:node xx.js; process.argv; Use file system to creat folder and files; const fs = require('fs'); mkdirSync; writeFileSync 阅读全文
posted @ 2021-01-30 01:48 LilyLiya 阅读(118) 评论(0) 推荐(0)
Commonly used terminal commands

摘要:ls, pwd, cd, ~, /, mkdir, touch, rm, rmdir, rm, -rf, man. 阅读全文
posted @ 2021-01-29 12:47 LilyLiya 阅读(64) 评论(0) 推荐(0)
选最合适的公寓——距离学校,超市,健身房的最大距离最小

摘要:Arrays.Apartment Hunting.Hard; min-max距离问题;二元数组; 阅读全文
posted @ 2021-01-28 03:19 LilyLiya 阅读(85) 评论(0) 推荐(0)
TVMAZE API应用:查找电影图片

摘要:form.elements.query.value; createElement('IMG'); await axios.get(`http://api.tvmaze.com/search/shows`, config); 阅读全文
posted @ 2021-01-27 12:25 LilyLiya 阅读(363) 评论(0) 推荐(0)
axios.get应用,使用dad-joke API生成随机笑话

摘要:按钮点击事件(addEventListener);async; await; axios.get; document.createElement('LI'); 阅读全文
posted @ 2021-01-27 11:39 LilyLiya 阅读(283) 评论(0) 推荐(0)
http请求:XMLHttpRequest, Fetch, AXIOS

摘要:什么是xml, json, ajax; 发送请求的三种方式:XMLHttpRequest, Fetch, AXIOS, 什么是API 阅读全文
posted @ 2021-01-27 09:40 LilyLiya 阅读(264) 评论(0) 推荐(0)
Async Functions

摘要:ASYNC; AWAIT; delayedColorChange demo using await; try catch to handle errors in async functions 阅读全文
posted @ 2021-01-26 13:36 LilyLiya 阅读(89) 评论(0) 推荐(0)
Promise intro ang creating promises

摘要:.then .catch. resolve reject delayedColorChange demo using promise 阅读全文
posted @ 2021-01-26 13:27 LilyLiya 阅读(84) 评论(0) 推荐(0)
callStack and callback

摘要:call Stack------> callback----->callback Hell--------->Promise 阅读全文
posted @ 2021-01-26 13:15 LilyLiya 阅读(103) 评论(0) 推荐(0)
异步编程的概念以及promise的作用

摘要:异步,单线程,主线程,promise 阅读全文
posted @ 2021-01-26 12:44 LilyLiya 阅读(122) 评论(0) 推荐(0)
Pingpong Score Keeper_Bulma框架

摘要:Bulma框架的使用,js对象对代码简洁化的作用,js后台控制台找bug 阅读全文
posted @ 2021-01-24 08:11 LilyLiya 阅读(110) 评论(0) 推荐(0)
Event_Delegation

摘要:console.dir(e.target); //check the details of the e.target e.target.nodeName === 'LI' && e.target.remove();//只有当nodeName是LI时才会删除 阅读全文
posted @ 2021-01-23 00:31 LilyLiya 阅读(58) 评论(0) 推荐(0)
Event bubbling

摘要:e.stopPropagation(); .classList.toggle('hide'); html内部style 阅读全文
posted @ 2021-01-22 14:20 LilyLiya 阅读(106) 评论(0) 推荐(0)
input/change event practice

摘要:输入框输入文字,h1显示动态文字, input.addEventListener('input',) input.addEventListener('change',) 阅读全文
posted @ 2021-01-21 13:57 LilyLiya 阅读(120) 评论(0) 推荐(0)
Form event

摘要:form, 'submit', name用来干什么?怎么避免提交当前页面时自动跳转到另一个不存在的页面?form.elements.product.value。 输入框文字动态清空 阅读全文
posted @ 2021-01-21 12:38 LilyLiya 阅读(170) 评论(0) 推荐(0)
Event_Object

摘要:keydown, keyup, .key, .code, window.addEventListener 阅读全文
posted @ 2021-01-21 12:20 LilyLiya 阅读(91) 评论(0) 推荐(0)
DOM_this keyword

摘要:DOM里面的function里面使用this关键词 阅读全文
posted @ 2021-01-21 12:05 LilyLiya 阅读(100) 评论(0) 推荐(0)
Random color generator exercise

摘要:利用按钮的点击事件和随机数的应用来产生随机颜色对按钮的背景颜色进行动态调控并记录具体rgb值,用到了function 阅读全文
posted @ 2021-01-21 08:51 LilyLiya 阅读(100) 评论(0) 推荐(0)
DOM_events_addEventListener

摘要:DOM event,onclick= / .onclick / .addEventListener 阅读全文
posted @ 2021-01-21 01:12 LilyLiya 阅读(73) 评论(0) 推荐(0)
BST_traverse(中序遍历,前序遍历,后序遍历)

摘要:refer to: https://www.algoexpert.io/questions/BST%20Traversal && leetcode &&力扣 分别使用前序遍历中序遍历后序遍历的方法遍历搜索二叉树 1 import java.util.*; 2 3 class Program { 4 阅读全文
posted @ 2021-01-18 08:06 LilyLiya 阅读(219) 评论(0) 推荐(0)
JS_DOM_practice with Pokemon

摘要:display: inline-block, block; document.querySelector; document.createElement; .classList.add; .innerText /.src; label.innerText = `#${i}`; newImg.src = `${baseURL}${i}.png`; appendChild 阅读全文
posted @ 2021-01-18 02:44 LilyLiya 阅读(47) 评论(0) 推荐(0)
JS-DOM

摘要:querySelector, querySelectorAll; innerHTML, textContent/innerText/src; .style.width to change style; getAttribute/ setAttribute/ .classList/ .classList.add() / .classList.remove() /classList.contains() / classList.toggle(); traversing parent/child/sibling; Append& AppendChild(create DOM element and append it into page); remove/removeChild 阅读全文
posted @ 2021-01-18 02:34 LilyLiya 阅读(81) 评论(0) 推荐(0)
Newer js features

摘要:Default parameters, Spread(...), Rest(...), Arguments Object, Destructuring 阅读全文
posted @ 2021-01-13 10:14 LilyLiya 阅读(130) 评论(0) 推荐(0)
JS - callbacks & array methods

摘要:forEach, map,filter,reduce, arrow function, setTimeout && setInterval, some & every methods, arrow function vs this 阅读全文
posted @ 2021-01-12 07:07 LilyLiya 阅读(111) 评论(0) 推荐(0)
Max Subset Sum No adjacent

摘要:动态规划,非临界最大子集和 阅读全文
posted @ 2021-01-11 14:22 LilyLiya 阅读(163) 评论(0) 推荐(0)
JS functions in detail

摘要:this; scope 阅读全文
posted @ 2021-01-11 13:25 LilyLiya 阅读(78) 评论(0) 推荐(0)
JS iterating over objects

摘要:return values, keys, entries of Object; day Of week 阅读全文
posted @ 2021-01-11 06:34 LilyLiya 阅读(81) 评论(0) 推荐(0)
loops; simple to do list

摘要:To do list; loops 阅读全文
posted @ 2021-01-11 03:52 LilyLiya 阅读(84) 评论(0) 推荐(0)
JS objects

摘要:JavaScript Object Literals 阅读全文
posted @ 2021-01-09 03:05 LilyLiya 阅读(74) 评论(0) 推荐(0)
深度优先搜索DFS

摘要:深度优先搜索 阅读全文
posted @ 2021-01-08 14:50 LilyLiya 阅读(65) 评论(0) 推荐(0)
Array

摘要:mixed array; 数组基本操作: push, pop, shift, unshift, slice, splice 阅读全文
posted @ 2021-01-08 07:14 LilyLiya 阅读(95) 评论(0) 推荐(0)
JS_Boolean Logic

摘要:双等号VS三等号;如何判断一个字符串里面是否包含空格; 条件语句;控制台基本操作; 阅读全文
posted @ 2021-01-08 03:08 LilyLiya 阅读(81) 评论(0) 推荐(0)
广度优先搜索 BFS

摘要:广度优先搜索,队列 阅读全文
posted @ 2021-01-07 13:21 LilyLiya 阅读(77) 评论(0) 推荐(0)
Invert Binary Tree

摘要:翻转二叉树(BFS, DFS,队列) 阅读全文
posted @ 2021-01-07 12:25 LilyLiya 阅读(86) 评论(0) 推荐(0)
Node Depths of BinaryTree

摘要:栈 阅读全文
posted @ 2021-01-07 07:35 LilyLiya 阅读(161) 评论(0) 推荐(0)
js String

摘要:JS String的常见用法 阅读全文
posted @ 2021-01-07 07:19 LilyLiya 阅读(123) 评论(0) 推荐(0)
js basics

摘要:js basics day 1 阅读全文
posted @ 2021-01-07 02:06 LilyLiya 阅读(93) 评论(0) 推荐(0)
nav bar

摘要:导航栏显示 阅读全文
posted @ 2021-01-06 16:12 LilyLiya 阅读(372) 评论(0) 推荐(0)
Validate BST

摘要:refer to : https://www.algoexpert.io/questions/Validate%20BST 1. Problem statement. Given the root of a binary tree, determine if it is a valid binary 阅读全文
posted @ 2021-01-06 16:03 LilyLiya 阅读(94) 评论(0) 推荐(0)
Bootstrap basics

摘要:bootstrap framework basics 阅读全文
posted @ 2021-01-05 13:53 LilyLiya 阅读(106) 评论(0) 推荐(0)
BST construction

摘要:BST construction refer to : https://www.algoexpert.io/questions/BST%20Construction 1. 什么是二叉搜索树? 二叉搜索树是二叉树的一种特殊形式,而二叉树的特性在于每个节点包含最多两个子节点。 二叉搜索树的特性:每个节点 阅读全文
posted @ 2021-01-05 03:30 LilyLiya 阅读(123) 评论(0) 推荐(0)
Find closest value in BST

摘要:refer to : https://www.algoexpert.io/questions/Find%20Closest%20Value%20In%20BST Find Closest Value in BST 1. problem statement. 给定一个二叉搜索树和一个目标值,返回这个B 阅读全文
posted @ 2021-01-04 02:49 LilyLiya 阅读(124) 评论(0) 推荐(0)
three number sum

摘要:refer to: https://www.algoexpert.io/questions/Three%20Number%20Sum Three number Sum problem statement 给定一个数组和一个目标值,返回二维数组包含所有的三元组使得这三个数值的和等于目标值,返回的二维数 阅读全文
posted @ 2021-01-03 08:12 LilyLiya 阅读(195) 评论(0) 推荐(0)
two number sum

摘要:Refer to : https://www.algoexpert.io/questions/Two%20Number%20Sum Two number sum 1. problem statement. 给定一个不含重复数字的数组和一个目标值,返回一个长度为2的数组,这个数组包含的两个数的和要等于 阅读全文
posted @ 2021-01-03 06:09 LilyLiya 阅读(101) 评论(0) 推荐(0)
First duplicate value

摘要:From : https://www.algoexpert.io/questions/First%20Duplicate%20Value First duplicate value 1. problem statement 给定一个长度为n的数组,这个数组包含的整数的范围在[1,n],我们需要找到第 阅读全文
posted @ 2021-01-03 05:43 LilyLiya 阅读(100) 评论(0) 推荐(0)
Closest sum_pair

摘要:From Youtuber: CS Dojo Closest sum_pair 1. Problem Statement given two arrays and a target value, we need to find the pair value that their sum is mos 阅读全文
posted @ 2021-01-03 01:36 LilyLiya 阅读(149) 评论(0) 推荐(0)
滑动窗口 sliding window

摘要:From : https://www.educative.io/courses/grokking-the-coding-interview Maximum Sum Subarray of Size K (easy) 1. problem statement Given an array of pos 阅读全文
posted @ 2021-01-02 14:28 LilyLiya 阅读(183) 评论(0) 推荐(0)
SQL学习笔记-day1

摘要:What is SQL? SQL stands for Structured Query Language. A sequel is a set of commands. SQL is a set of commands that can be sent to the database, then 阅读全文
posted @ 2021-01-02 14:01 LilyLiya 阅读(91) 评论(0) 推荐(0)

博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3