摘要: SQL 的约束 一、实验介绍 1.1 实验内容 约束是一种限制,它通过对表的行或列的数据做出限制,来确保表的数据的完整性、唯一性。本节实验将在实践操作中熟悉 MySQL 中的几种约束。 1.2 实验知识点 SQL 约束 1.3 实验环境 课程使用的实验环境为 Ubuntu Linux 14.04 6 阅读全文
posted @ 2018-05-09 17:15 绵绵思远道 阅读(306) 评论(0) 推荐(0) 编辑
摘要: 打开终端,进入Code目录,创建文件tecmint_monitor.sh。getopts:可以获取用户在命令下的参数,然后根据不同的参数进行不同的操作。它的使用方法是getopts option_string variable,option_string 是指字符串,会逐个匹配,variable 每 阅读全文
posted @ 2018-05-09 15:43 绵绵思远道 阅读(1733) 评论(0) 推荐(0) 编辑
摘要: 题目: You are playing the following Bulls and Cows game with your friend: You write down a number and ask your friend to guess what the number is. Each 阅读全文
posted @ 2016-08-10 11:17 绵绵思远道 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 题目: Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as the Hamming weight). For example, the 32- 阅读全文
posted @ 2016-08-10 10:49 绵绵思远道 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 题目: Reverse bits of a given 32 bits unsigned integer. For example, given input 43261596 (represented in binary as 00000010100101000001111010011100), r 阅读全文
posted @ 2016-08-10 10:44 绵绵思远道 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 题目: We are playing the Guess Game. The game is as follows: I pick a number from 1 to n. You have to guess which number I picked. Every time you guess 阅读全文
posted @ 2016-08-02 14:05 绵绵思远道 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 题目: Write a function that takes a string as input and reverse only the vowels of a string. Example 1:Given s = "hello", return "holle". Example 2:Give 阅读全文
posted @ 2016-08-02 13:49 绵绵思远道 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 题目: Given two arrays, write a function to compute their intersection. Example:Given nums1 = [1, 2, 2, 1], nums2 = [2, 2], return [2, 2]. Note: Each el 阅读全文
posted @ 2016-08-02 13:23 绵绵思远道 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 题目: Given two arrays, write a function to compute their intersection. Example:Given nums1 = [1, 2, 2, 1], nums2 = [2, 2], return [2]. Note: Each eleme 阅读全文
posted @ 2016-08-02 11:57 绵绵思远道 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a binary tree, return all root-to-leaf paths. For example, given the following binary tree: All root-to-leaf paths are: 阅读全文
posted @ 2016-08-02 11:12 绵绵思远道 阅读(161) 评论(0) 推荐(0) 编辑