码迷,mamicode.com
首页 >  
搜索关键字:part solution    ( 14980个结果
leetcode--Max Points on a Line
Givennpoints on a 2D plane, find the maximum number of points that lie on the same straight line.public class Solution { /** * This program is used t....
分类:其他好文   时间:2014-06-03 17:05:21    阅读次数:434
Java Interview Reference Guide--reference
Part1http://techmytalk.com/2014/01/24/java-interview-reference-guide-part-1/Posted onJanuary 24, 2014byNitin KumarJAVA Object Oriented ConceptsJava in...
分类:编程语言   时间:2014-06-03 16:13:26    阅读次数:355
VS 文件自动定位功能
在Visual Studio 中,当你在所有打开的文件中进行切换时,在Solution Explorer中也会自动定位到这个文件的目录下面,这个功能用来查找当前文件是非常有用。在Tools->Options中,有个Trace Active Item in Solution Exploer,把那个勾勾...
分类:其他好文   时间:2014-06-03 15:27:57    阅读次数:329
LeetCode: Recover Binary Search Tree [099]
【题目】 Two elements of a binary search tree (BST) are swapped by mistake. Recover the tree without changing its structure. Note: A solution using O(n) space is pretty straight forward. Could you devise a constant space solution? confused what "{1,#,2,3}" ...
分类:其他好文   时间:2014-06-02 10:38:17    阅读次数:246
【leetcode】 Sudoku Solver
问题: Write a program to solve a Sudoku puzzle by filling the empty cells. Empty cells are indicated by the character '.'. You may assume that there will be only one unique solution. ...
分类:其他好文   时间:2014-06-02 05:25:23    阅读次数:295
LeetCode Sort Colors
class Solution { public: void swap(int &a,int &b) { int t=a; a=b; b=t; } void ksort(int l,int h,int a[]) { if(h<l+2) return; int e=h,p=l; while(...
分类:其他好文   时间:2014-06-02 03:01:26    阅读次数:206
翻译:使用 ASP.NET MVC 4, EF, Knockoutjs and Bootstrap 设计和开发站点 - 6 - 业务逻辑
Part 3: 设计逻辑层:核心开发如前所述,我们的解决方案如下所示:下面我们讨论整个应用的结构,根据应用中不同组件的逻辑相关性,分离到不同的层中,层与层之间的通讯通过或者不通过限制。分层属于架构风格,在应用的长时间生命周期中,解决维护和扩展问题。所以,让我们在解决方案中添加一个类库项目,命名为 A...
分类:Web程序   时间:2014-06-02 00:50:39    阅读次数:307
Leetcode: 06/01
今天完成了三道题目,总结一下:1: Length of last word(细节实现题)此题有一些细节需要注意(比如 “a_ _” 最后一个单词是a, 而不是遇到空格就直接算成没有),别的基本就是模拟了。 1 class Solution { 2 public: 3 int lengthOf...
分类:其他好文   时间:2014-06-02 00:28:43    阅读次数:326
leetcode Reverse Nodes in k-Group
递归一下 /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ class Solution { public: Li...
分类:其他好文   时间:2014-06-01 17:35:40    阅读次数:406
LeetCode: Binary Tree Inorder Traversal [094]
【题目】 Given a binary tree, return the inorder traversal of its nodes' values. For example: Given binary tree {1,#,2,3}, 1 2 / 3 return [1,3,2]. Note: Recursive solution is trivial, could you do it iteratively? confused what "{1,#,2...
分类:其他好文   时间:2014-06-01 13:01:23    阅读次数:279
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!