摘要:
表变量: DECLARE @tb table(id int identity(1,1), name varchar(100)) INSERT @tb SELECT id, name FROM mytable WHERE name like ‘zhang%’ 临时表: SELECT name, add 阅读全文
摘要:
Description Given a binary array, find the maximum number of consecutive 1s in this array. Example 1: Note: The input array will only contain 0 and 1. 阅读全文
摘要:
Description Given an array of integers where 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once. Find all the element 阅读全文
摘要:
Description Given a sorted linked list, delete all duplicates such that each element appear only once. Example 1: Example 2: 问题描述:给定一个已排序链表,移除重复元素 代码: 阅读全文
摘要:
Description Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lis 阅读全文