摘要:
level 1 framework defination: bootstrap file structure: Adding bootstrp to our html: bootstrap relays on jquery, so we also need to add jquery inside 阅读全文
摘要:
基础1: partition Partition Array Given an array nums of integers and an int k, partition the array (i.e move the elements in "nums") such that: All elem 阅读全文
摘要:
N-Queens 模拟退火不会写 0.0 The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other. Given an i 阅读全文
摘要:
First Missing Positive Given an unsorted integer array, find the first missing positive integer. For example,Given [1,2,0] return 3,and [3,4,-1,1] ret 阅读全文
摘要:
level4 当我们需要打印多次product name 和product price的时候,我们要重复利用这2行代码 如果要传入string,那么用“” 里面包含‘’。利用ng-include 加载页面以后,用ajax call来拿到需要include的page 分割线 a better way 阅读全文
摘要:
level 3 Forms and Models 如何添加和显示review? review内容作为product的内容的一部分!放在app.js文件里面 在html显示页面里面,增加一个循环来显示review的内容 我们如何把表单要填写的内容和我们要显示的内容进行绑定呢? 通过ng-model d 阅读全文
摘要:
1. min/max heap 看到K神马的基本上就是min/max heap. (1) Find the K closest points to the origin in a 2D plane, given an array containing N points. 1 public stati 阅读全文
摘要:
目录: 1. 一个数组从两边往中间移动(对撞型) 2. 一个数组同时向前移动(前向型) 3. 两个数组(并行型) 1. 对撞型/相会型指针 1. two sum, three sum, 4 sum, k sum 类 2.灌水类问题 1. sort colors Given an array with 阅读全文