摘要: Description Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number. 阅读全文
posted @ 2018-08-30 14:27 C_supreme 阅读(142) 评论(0) 推荐(0) 编辑
摘要: Description Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. Yo 阅读全文
posted @ 2018-08-29 09:49 C_supreme 阅读(153) 评论(0) 推荐(0) 编辑
摘要: Description Say you have an array for which the ith element is the price of a given stock on day i. If you were only permitted to complete at most one 阅读全文
posted @ 2018-08-27 10:28 C_supreme 阅读(141) 评论(0) 推荐(0) 编辑
摘要: Description Given a non-negative index k where k ≤ 33, return the kth index row of the Pascal's triangle. Note that the row index starts from 0. In Pa 阅读全文
posted @ 2018-08-24 17:20 C_supreme 阅读(124) 评论(0) 推荐(0) 编辑
摘要: Description Given a non-negative integer numRows, generate the first numRows of Pascal's triangle. In Pascal's triangle, each number is the sum of the 阅读全文
posted @ 2018-08-23 16:50 C_supreme 阅读(164) 评论(0) 推荐(0) 编辑
摘要: Description Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array. Note: The number of elements initialized in n 阅读全文
posted @ 2018-08-23 15:01 C_supreme 阅读(156) 评论(0) 推荐(0) 编辑
摘要: EO: Entity Object 就是EF中的实体类, 对EO的操作会对数据库产生影响。 DTO: Data Transfer Object 数据传输对象。用于在各层之间传递数据的普通类,DTO有哪些属性取决于其他层要什么数据。DTO一般是个“扁平类”,也就是没有关联属性,都是普通类型属性,再说的 阅读全文
posted @ 2018-08-22 17:18 C_supreme 阅读(1121) 评论(0) 推荐(0) 编辑
摘要: AOP(面向切面)是一种架构思想,用于把公共的逻辑放到一个单独的地方,这样就不用每个地方都写重复的代码了。比如程序中发生异常,不用每个地方都try…catch 只要在Golbal的Application_Error中统一进行异常处理。 AOP(面向切面)是一种架构思想,用于把公共的逻辑放到一个单独的 阅读全文
posted @ 2018-08-22 14:52 C_supreme 阅读(1214) 评论(0) 推荐(0) 编辑
摘要: TempData本质上是Session 但是有一点不同的是,TempData被赋值之后,一旦被Action访问一次之后,马上就会清空。 TempData本质上是Session 但是有一点不同的是,TempData被赋值之后,一旦被Action访问一次之后,马上就会清空。 System.Web.Htt 阅读全文
posted @ 2018-08-22 14:49 C_supreme 阅读(1662) 评论(0) 推荐(0) 编辑
摘要: 首先先说一下Redriect 和RedirectToAction 首先先说一下Redriect 和RedirectToAction 两个没什么区别,都是向浏览器发送302 Found相应,再有浏览器向对应的url进行请求 两个没什么区别,都是向浏览器发送302 Found相应,再有浏览器向对应的ur 阅读全文
posted @ 2018-08-22 14:47 C_supreme 阅读(283) 评论(0) 推荐(0) 编辑