自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

夜店金腰带的博客

夜店金腰带的博客

  • 博客(7)
  • 资源 (1)
  • 收藏
  • 关注

原创 309 最佳买卖股票时机含冷冻期

1.题目描述给定一个整数数组,其中第 i 个元素代表了第 i 天的股票价格 。​设计一个算法计算出最大利润。在满足以下约束条件下,你可以尽可能地完成更多的交易(多次买卖一支股票):你不能同时参与多笔交易(你必须在再次购买前出售掉之前的股票)。 卖出股票后,你无法在第二天买入股票 (即冷冻期为 1 天)。示例输入:A: [1,2,3,2,1]B: [3,2,1,4,7]...

2018-10-06 21:55:38 456

原创 Mysql学习笔记_6

使用游标Mysql检索操作返回一组成为结果集的行(零行,一行或多行)。仅仅简单地使用select语句,没有办法得到下一行,下十行,也没有办法每次一行处理所有行。游标的使用解决了这个问题。*需要注意的是,不像大多数DBMS,Mysql游标只能用于存储过程(函数)。...

2018-02-16 23:13:46 163

原创 Mysql学习笔记_5

使用视图视图是什么视图是虚拟的表。与包含数据的表不一样,视图只包含使用时动态检索数据的查询。视图的性能问题因为视图不包含数据,所以每次使用视图时,都必须处理查询时所需的任意一个检索。若使用了多个联结和过滤创建了复杂的视图或嵌套了视图,可能性能会下降。所以在创建大量视图时,需要对性能进行测试。视图的创建create view productcustomers as select cust_name,...

2018-02-14 23:14:23 208

原创 Mysql学习笔记_4

插入数据插入完整的行insert into [table_name] value (values1, values2, etc);insert (low_priority) into [table_name] ([column_name], [column_name], [column_name]) value (values1, values2, etc);#1  插入写法简单,但是容易出错,...

2018-02-12 23:01:07 206

原创 Mysql学习笔记_3

分组数据select [column_name], count(*) as [new_name] from [table_name] group by [column_name] (with rollup);select [column_name], count(*) as [new_name] from [table_name] group by [column_name] having co...

2018-02-10 23:01:22 140

原创 Mysql学习笔记_2

创建计算字段select concat ([column_name], '连接符', [column_name]) from [table_name];#1select concat (rtrim([column_name]),'连接符',rtrim([column_name] )) from [table_name];#2# 1 连接两个列显示# 2 连接两个列 并删除右侧空格(左对齐) 同理...

2018-02-09 10:42:21 115

原创 Mysql学习笔记_1

检索数据——select 语句select [column_name, column_name] from [table_name]; #1select * from [table_name]; #2select distinct [column_name] from [table_name]; #3select [column_name] from [table_name] l...

2018-02-08 16:39:01 136

Data Structures and Algorithms in Python

This book is based upon the book Data Structures and Algorithms in Java by Goodrich and Tamassia, and the related Data Structures and Algorithms in C++ by Goodrich, Tamassia, and Mount. However, this book is not simply a translation of those other books to Python. In adapting the material for this book, we have significantly redesigned the organization and content of the book as follows: • The code base has been entirely redesigned to take advantage of the features of Python, such as use of generators for iterating elements of a collection. • Many algorithms that were presented as pseudo-code in the Java and C++ versions are directly presented as complete Python code. • In general, ADTs are defined to have consistent interface with Python’s built- in data types and those in Python’s collections module. • Chapter 5 provides an in-depth exploration of the dynamic array-based un- derpinnings of Python’s built-in list, tuple, and str classes. New Appendix A serves as an additional reference regarding the functionality of the str class. • Over 450 illustrations have been created or revised. • New and revised exercises bring the overall total number to 750.

2018-02-09

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除