今日头条笔试解题报告(10.17)
ACM
头条的笔试还挺有意思的。 推箱子 这题跟走迷宫问题本质上是一致的,只不过状态既要保存人的位置也要保存箱子的位置。直接爆搜就能过了。 #include<iostream> #include<cstdio> #include<cstring> #include<algorithm> #include<queue> using namespace...Read More
local_offer #招聘  #网易  #LCS  #暴力 
初探Y Combinator
算法
以前逛技术社区的时候偶尔会看到一些比较炫酷的Y Combinator,觉得挺神奇的,比如说能够不用递归和循环实现阶乘函数等一些以往需要递归实现...Read More
网易互娱2018年校招笔试解题报告
ACM

今天做了一下网易互娱测开的校招笔试,感觉题目挺简单的,比隔壁不招人的阿里笔试正常不少,可惜我多年不写代码正确率和手速明显跟不上了, ToT….

...Read More
local_offer #招聘  #网易  #LCS  #暴力 
开始使用Hugo
Tool
迁徙博客 最近了解到了hugo这个博客生成器,试用了一下,发现跟之前hexo相比,生成速度的确快了不少。而且还是sp13大神用Go写的作品,于...Read More
local_offer #hugo  #blog generator 
Polymer 2.0 文档笔记(7) Helper Element
Web
Polymer提供一系列的自定义元素来简化一些共有的数据绑定逻辑: dom-repeat 遍历显示数组 array-selector 数组选择器 dom-if 条件显示 dom-bind 自动绑定 2.0 tip. The data binding helper elements are bundled in to the backward-compatible, polymer.html...Read More
local_offer #Polymer 
Polymer 2.0 文档笔记(6) Data Binding
Web
A data binding connects data from a custom element (the host element) to a property or attribute of an element in its local DOM (the child or target element). The host element data can be a property or sub-property represented by a data path, or data generated based on one or more paths. 数据绑定能够将host元素和tar...Read More
local_offer #Polymer 
Polymer 2.0 文档笔记(5) Observers && Computed Properites
Web
有两种监听器: 简单监听器,只能监听单一的property 复杂监听器:可以监听一到多个property 每个监听器都有一个或多个 依赖 ,当依赖发生...Read More
local_offer #Polymer 
Polymer 2.0 文档笔记(4) Data System
Web
Polymer提供观察函数、计算属性、数据绑定三大模型功能: Observers Callbacks invoked when data changes. Computed properties Virtual properties computed based on other properties, and recomputed when the input data changes. Data bindings Annotations that update the properties, attributes, or text content of a DOM node when data changes....Read More
local_offer #Polymer 
Polymer 2.0 文档笔记(3) Events
Web
Normal Events Polymer elements can use the standard DOM APIs for creating, dispatching, and listening for events. Polymer also provides annotated event listeners, which allow you to specify event listeners declaratively as part of the element’s DOM template. Add annotated event listeners 这个其实就是在标签上使用on-event属性。 <dom-module id="x-custom"> <template> <button on-click="handleClick">Kick...Read More
local_offer #Polymer 
Polymer 2.0 文档笔记(2) ShadowDOM
Web
ShadowDOM API var div = document.createElement('div'); var shadowRoot = div.attachShadow({mode: 'open'}); shadowRoot.innerHTML = '<h1>Hello Shadow DOM</h1>'; ShadowDOM Composition 主要概念: LightDOM: 元素的实际子孙节点,浏览器不会对LightDOM做任何的修改和移动。但是渲染的时候会渲染到相...Read More
local_offer #Polymer