摘要: 联结: 一种机制,用来在一条SELECT语句中关联表,因此称之为联结。它在数据库中不存在。联结由MySQL根据需要建立,它存在于查询的执行过程中。 创建联结: (使用WHERE联结) SELECT vend_name, prod_name, prod_price FROM vendors, ... 阅读全文
posted @ 2016-04-21 22:17 Jung_zhang 阅读(896) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a linked list, swap every two adjacent nodes and return its head. For example, Given 1->2->3->4, you should return the list as 2->1->4-... 阅读全文
posted @ 2016-04-21 19:08 Jung_zhang 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 题目: Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity. 题目大意: 给定k条有序链表,求k条链表有序合并后的链表。 思路: 看到这... 阅读全文
posted @ 2016-04-20 23:43 Jung_zhang 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 题目: Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. For example, given n = 3, a solution ... 阅读全文
posted @ 2016-04-20 19:57 Jung_zhang 阅读(518) 评论(0) 推荐(0) 编辑
摘要: 题目: 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 lists.... 阅读全文
posted @ 2016-04-17 16:59 Jung_zhang 阅读(1415) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must clo... 阅读全文
posted @ 2016-04-16 22:47 Jung_zhang 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a linked list, remove the nth node from the end of list and return its head. For example, Given linked list: 1->2->3->4->5, and n = ... 阅读全文
posted @ 2016-04-16 14:33 Jung_zhang 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 题目: Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplets in the a... 阅读全文
posted @ 2016-04-16 00:00 Jung_zhang 阅读(113) 评论(0) 推荐(0) 编辑
摘要: MySQL学习笔记,以防遗忘 数据库基本概念 数据库:保存有组织的数据的容器(通常是一个文件或一组文件)。 表:某种特定类型数据的结构化清单,数据库中的表都有一个唯一的名字用来标识自己。 模式:关于数据库和表的布局及特性的信息。 列:表中的一个字段。所有表都是由一个或多个列组成,每个列都有对应的... 阅读全文
posted @ 2016-04-14 20:11 Jung_zhang 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a digit string, return all possible letter combinations that the number could represent. A mapping of digit to letters (just like on th... 阅读全文
posted @ 2016-04-14 18:46 Jung_zhang 阅读(133) 评论(0) 推荐(0) 编辑