上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 16 下一页
摘要: Given a non-empty integer array of size n, find the minimum number of moves required to make all array elements equal, where a move is incrementing n  阅读全文
posted @ 2016-11-25 01:23 微微程序媛 阅读(286) 评论(0) 推荐(0) 编辑
摘要: Assume you are an awesome parent and want to give your children some cookies. But, you should give each child at most one cookie. Each child i has a g 阅读全文
posted @ 2016-11-25 01:04 微微程序媛 阅读(388) 评论(0) 推荐(0) 编辑
摘要: Given a sequence of words, check whether it forms a valid word square. A sequence of words forms a valid word square if the kth row and column read th 阅读全文
posted @ 2016-11-24 10:33 微微程序媛 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 463. Island Perimeter 463. Island Perimeter You are given a map in form of a two-dimensional integer grid where 1 represents land and 0 represents wat 阅读全文
posted @ 2016-11-24 09:51 微微程序媛 阅读(983) 评论(0) 推荐(0) 编辑
摘要: Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T. The same repeat 阅读全文
posted @ 2016-11-17 01:40 微微程序媛 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 冒泡排序 Bubble Sort O(N^2) 选择排序 select sort 是一种简单直观的排序算法。它的工作原理如下。首先在未排序序列中找到最小(大)元素,存放到排序序列的起始位置,然后,再从剩余未排序元素中继续寻找最小(大)元素,然后放到已排序序列的末尾。以此类推,直到所有元素均排序完毕。 阅读全文
posted @ 2016-11-12 01:53 微微程序媛 阅读(289) 评论(0) 推荐(0) 编辑
摘要: 1.home page $rails generate controller StaticPages home help 2. test rails test 3. add CSS gem bootstrap-sass in gemfile 或者直接在assert static.scss改 $ to 阅读全文
posted @ 2016-11-07 16:07 微微程序媛 阅读(262) 评论(0) 推荐(0) 编辑
摘要: 1.安装ruby 和 rails $ rvm use ruby-2.3.0$ gem install rails$ rails --version //run ruby$ irb $ cd workspace$ rails new blog$ rails server //localhost:300 阅读全文
posted @ 2016-11-07 02:24 微微程序媛 阅读(212) 评论(0) 推荐(0) 编辑
摘要: Given an encoded string, return it's decoded string. The encoding rule is: k[encoded_string], where the encoded_string inside the square brackets is b 阅读全文
posted @ 2016-10-31 07:34 微微程序媛 阅读(745) 评论(0) 推荐(0) 编辑
摘要: Shuffle a set of numbers without duplicates. Example: 阅读全文
posted @ 2016-10-31 06:07 微微程序媛 阅读(282) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 16 下一页