上一页 1 ··· 49 50 51 52 53
摘要: Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the hist 阅读全文
posted @ 2016-06-30 12:11 北叶青藤 阅读(272) 评论(0) 推荐(0) 编辑
摘要: Given an array with positive and negative integers. Re-range it to interleaving with positive and negative integers. Note: You are not necessary to ke 阅读全文
posted @ 2016-06-30 05:12 北叶青藤 阅读(284) 评论(0) 推荐(0) 编辑
摘要: Majority Number Given an array of integers, the majority number is the number that occurs more than half of the size of the array. Find it. Example Gi 阅读全文
posted @ 2016-06-29 22:58 北叶青藤 阅读(387) 评论(0) 推荐(0) 编辑
摘要: Given an integer array, adjust each integers so that the difference of every adjacent integers are not greater than a given number target. If the arra 阅读全文
posted @ 2016-06-29 10:57 北叶青藤 阅读(512) 评论(0) 推荐(0) 编辑
摘要: 关注Trie 这种结构已经很久,Trie有一个很有趣的用途,那就是自动提示。而且,前不久在一次面试里,也需要用Trie来解答。所以,在此对这个数据结构进行总结。Trie,又称单词查找树或键树,是一种树形结构。典型应用是用于统计和排序大量的字符串(但不仅限于字符串),所以经常被搜索引擎系统用于文本词频 阅读全文
posted @ 2016-06-29 04:02 北叶青藤 阅读(538) 评论(0) 推荐(0) 编辑
摘要: Word Search I Given a 2D board and a word, find if the word exists in the grid. The word can be constructed from letters of sequentially adjacent cell 阅读全文
posted @ 2016-06-29 03:13 北叶青藤 阅读(307) 评论(0) 推荐(0) 编辑
摘要: 本文介绍如何在MVC里往数据库中插入新的记录。这里用到的数据表如下:EmployeesStep 1:在Control文件里加入method public ActionResult Create() { return View(); }S... 阅读全文
posted @ 2015-02-01 05:35 北叶青藤 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 本文介绍如何创建radiobutton.Step 1: 创建一个类用于获取所有的选项。public class Company { public string SelectedDepartment { get; set; } public List Departme... 阅读全文
posted @ 2015-01-31 06:44 北叶青藤 阅读(338) 评论(0) 推荐(0) 编辑
摘要: 本文介绍如何在网页里显示DropDownList。Step 1: 在Control里面添加方法 public ActionResult ShowDropDownList() { return View(); }Step 2: 在View... 阅读全文
posted @ 2015-01-31 05:29 北叶青藤 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 在asp.net mvc 页面里上传大文件到服务器端,需要如下步骤:1. 在Control类里添加get 和 post 方法 1 // get method 2 public ActionResult Upload() 3 { 4 ... 阅读全文
posted @ 2015-01-13 00:03 北叶青藤 阅读(379) 评论(0) 推荐(0) 编辑
上一页 1 ··· 49 50 51 52 53