- 博客(89)
- 资源 (18)
- 收藏
- 关注
原创 CC Chapter 4 Tree and Graph --Graph
1. GraphsA tree is actually a type of graph, but not all graphs are trees. Simply put, a tree is a connected graph without cycles. A graph is simply a collection of nodes with edges between (some
2017-05-05 00:31:51 461
原创 CC chapter 4 Tree and Graphs ----Tree
1. Type of TreesA tree is a data structure composed of nodes. Each tree has a root node. The root node has zero or more child nodes. Each child node has zero or more
2017-05-04 23:27:28 404
原创 SOLID
SOLID means five important software design and develop principles, it stands by S is for SRP (Single responsibility principle) - a class should have only one responsibility.O is for OC
2017-01-30 12:20:41 454
原创 Dynamical SP with Entity Framework
Finally, the issue that the dynamical Sp not working on Entity framework is fixed by putting 'SET FMTONLY OFF' in the beginning of the stored procedure. When entity framework tries to retriev
2016-12-16 03:22:16 407
转载 Class VS Structs
A short summary of each:Classes Only:Can support inheritanceAre reference (pointer) typesThe reference can be nullHave memory overhead per new instanceStructs Only:Cannot support inher
2016-09-16 14:33:28 312
转载 REST VS SOAP , WCF
RESTRESTs sweet spot is when you are exposing a public API over the internet to handle CRUD operations on data. REST is focused on accessing named resources through a single consistent interface
2016-09-16 13:33:37 389
转载 Copy database via backup and restore
When copying the database using wizard in SQL server is failed, I use the following method to copy the database successfully.--backup the databasebackup database test1 to disk='c:\test1_full.
2016-03-10 11:20:27 516
原创 【数据结构】 第一章 绪论
1.1 什么是数据结构数据结构是一门研究非数值计算的程序设计问题中计算机的操作对象以及它们之间的关系和操作等等的学科1.2 基本概念和术语数据(Data): 是对客观事物的符号表示,指能输入到计算机中并被计算机程序处理的符号的总称。数据元素(Data Element): 数据的基本单位,计算机程序中作为一个整体进行考量和处理。
2016-01-22 12:06:15 591
原创 [数据结构] 数据结构(C语言) 严蔚敏、吴伟民编著 - 总
一直在说要扎实自己的数据结构与算法的能力,可是到底什么是数据结构,到底什么是算法呢? 数据结构与算法有啥区别呢?突然想起来,得把最经典的数据结构(C语言) 严蔚敏、吴伟民编著的教材翻翻了。全书共有十二章。 第一章是绪论。介绍数据结构及其基本概念和术语,以及基本的算法概念。第二章到第七章是基本的数据结构。 分别是线性表、栈和队列、串、数组和广义表、树和二叉树、以及图。
2016-01-22 10:48:40 2869
原创 LeetCode Database Problems
[175] Combine Two Tables[176] Second Highest Salary[177] Nth Highest Salary[178] Rank Scores[180] Consecutive Numbers[181] Employees Earning More Than Their Managers[182] Duplica
2015-09-16 09:57:59 579
原创 Import Excel file
private void btnImportFromExcel_Click(object sender, EventArgs e) { try { string fileName = string.Empty; var openFileDialog = new Open
2015-07-22 03:26:32 920
原创 [LeetCode] Majority Element solution
Given an array of size n find the majority element.The majority element is the element that appears more than ⌊ n/2 ⌋ times.You may assume that the array is non-empty and the majority element
2015-05-22 23:39:18 449
原创 Rename the database name sql
use masterGOdeclare @oldname varchar(50) = 'LldName'declare @newname varchar(50) = 'newName'exec ('Alter database '+ @oldname+ ' set single_user')exec ('sp_renamedb ' + @oldname + ' , '+ @newna
2015-05-07 21:54:22 737
原创 Insert data into a table using table variables and cross join
Declare @SSRSreportIDTable TABLE( ID int)Declare @UserNameTable Table( username nvarchar(50))INSERT INTO @SSRSReportIDTable Select SSRSReportID FROM SSRSReport WHERE SSRSReport.[SSRSRepor
2015-04-29 22:20:23 585
原创 Get the page name in asp.net web page
this.Page.ToString().Substring(4, this.Page.ToString().Substring(4).Length - 5);Asp.net web page: xxxx.aspx
2015-01-21 04:46:25 645
原创 Computer Identifier
using System;using System.Management;using System.Security.Cryptography;using System.Security;using System.Collections;using System.Text;namespace Security{ /// /// Generates a 16 byt
2015-01-03 03:54:11 593
原创 [LeetCode] Anagrams solution
Given an array of strings, return all groups of strings that are anagrams.Nots:All in
2014-11-25 13:56:13 500
原创 [LeetCode] ZigZag Conversion
The string "PAYPALISHIRING" is written in a zigzag pattern on a given num
2014-11-24 13:32:13 449
原创 [LeetCode] Add Binary
Given two binary strings, return their sum (also a binary string).For example,a = "11"b = "1"
2014-11-18 13:31:50 887
原创 【LeetCode】 刷题计划
计划和安排之一(Linked List): http://www.meetqun.com/thread-1749-1-1.html计划和安排之二 (Two Pointers):http://meetqun.com/thread-1942-1-1.html 这个为计划和安排之三 (string) 共计33题:https://oj.leetcode.com/tag/string/
2014-11-17 14:32:05 1218
原创 [LeetCode] 3Sum Closest
Given an array of S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. You may assume that each input would have exac
2014-11-17 13:50:54 646
原创 [LeetCode] 4Sum Solution
Given an array S of n integers, are there elements a, b, c and d in
2014-11-17 08:21:09 551
原创 [LeetCode] 3Sum Solution
Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.NotesElements in a triplet (a, b, c) mu
2014-11-16 10:07:38 521
原创 [LeetCode] Two Sum
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum sh
2014-11-13 13:59:22 1108
原创 [LeetCode] Remove Duplicates from Sorted Array II
Follow up for "Remove Duplicates".
2014-11-12 13:50:38 423
原创 [LeetCode] Remove Duplicates from Sorted Array
Given a sorted array, remove the duplicates in place such that each element
2014-11-11 10:55:50 439
原创 [LeetCode] 计划和安排 之二
2014-11-9 到 2014-11-15类别:【Two Pointers】https://oj.leetcode.com/tag/two-pointers/[2014-11-9][LeetCode] Valid Palindrome[LeetCode] Remove Element[LeetCode] Merge Sorted Array[2014-11-10]
2014-11-10 13:13:15 971
原创 [LeetCode] Merge Sorted Array
Given Two Sorted integer array A and B, merge B into A as one sorted array.Note:You may assume that A has enough space(size that is )
2014-11-10 13:02:27 454
原创 [LeetCode] Valid Palindrome
Given a string, determine if it is a palindrome,considering only alphanumeric characters and ignoring cases.
2014-11-10 12:34:01 437
原创 [LeetCode] Remove Element
Given an array and a value, remove all instances of that value in place and return the new
2014-11-10 11:45:06 424
原创 【LeetCode】Linked List 类题目列表
本帖最后由 wbing520 于 11-2-2014 10:03 PM 编辑既然我们成立了小组(【2014刷题组】),明确了目标 (2015年1月1日前完成 leetcode). 我们就要有计划,有安排,最终实现我们的目标。LeetCode:共154题时间: 11.2 to 12. 31 共计 29 + 31 = 60 天平均154/60 = 2 到 3题。(看
2014-11-09 16:34:12 729
原创 [LeetCode] Reverse Nodes in K-Group
Given a linked list, reverse the nodes of a linked list k at a time and return its modi
2014-11-09 16:20:15 533
原创 [LeetCode Solution] Merge k sorted Lists
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */class Solution {public: ListNode *me
2014-11-09 15:33:40 524
原创 [LeetCode] Copy List with Random Pointer
A linked list is given such that each node contains an additional random po
2014-11-08 17:37:33 576
原创 [LeetCode] Linked List Cycle II Solution
Given a linked list, return the node where the cycle begins, if there is no cycle, return null.Follow up: could you solve it
2014-11-03 07:55:10 1081
原创 [LeetCode] Linked List Cycle
Given a linked list, deter if it has cycle in it.Follow up: can you solve it without using extra space?
2014-11-03 02:31:58 512
原创 [Leetcode] Convert Sorted List to Binary Search Tree Solution
Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.
2014-11-03 02:02:02 700
原创 Binary Search Tree
1. What is Binary Search TreeA binary search tree is a binary tree with all node in left tree
2014-10-27 05:54:49 696
原创 [LeetCode] Reverse Linked List II Solution
Reverse a linked list from position m to n, Do it in-place and in one-pass.For example: Given 1->2->3->4->5->NULL, m = 2 and n = 4return 1->4->3->2->5->NULL.Note:Given m, n satisfy the follo
2014-10-27 05:35:14 630
[数字图像处理].(美)Rafael.C.Gonzalez.清晰版
2011-10-09
ETpaper From openU
2010-06-21
Web2.0技术探源
2008-10-14
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人