摘要: 问题描述 You are given a list of non-negative integers, a1, a2, ..., an, and a target, S. Now you have 2 symbols + and -. For each integer, you should cho 阅读全文
posted @ 2019-09-23 12:43 schaffen 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 题目 Given a non-empty array containing only positive integers, find if the array can be partitioned into two subsets such that the sum of elements in b 阅读全文
posted @ 2019-09-22 17:41 schaffen 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 问题 Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. An input string is valid if: 阅读全文
posted @ 2019-09-18 00:51 schaffen 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 问题描述 Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. push(x) -- Push element x onto stack. pop() -- 阅读全文
posted @ 2019-09-15 16:23 schaffen 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 本文内容 根据德文 tum 官网介绍:https://www.ei.tum.de/studium/master-ei-msei/ 翻译,提取并且翻译成中文信息。 本文适用于ws19/20届的学生。 概览 通常的学习时间是四个学期。你既可以从冬季,也可以从夏季学期开始,可以完全使用德语学习并且毕业,但 阅读全文
posted @ 2019-09-13 12:06 schaffen 阅读(894) 评论(0) 推荐(0) 编辑
摘要: 本文主旨 使用MinGW 和 文本编辑器 Sublime Text,来搭建c++编译的平台。 Sublime Text 安装 和 解除限制 http://rainss.cn/essay/1124.html 或者 https://blog.csdn.net/qq_26975307/article/de 阅读全文
posted @ 2019-09-05 15:04 schaffen 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 基本概述 本文没有涉及vps服务器的内容,而是关于在自己Linux电脑的设置。win只需要下载gui,而为了方便,linux需要命令行。 流程 一 、安装 pip sudo apt-get install python-pip sudo python -m pip install --upgrade 阅读全文
posted @ 2019-09-02 11:47 schaffen 阅读(56) 评论(0) 推荐(0) 编辑
摘要: 由于这个问题,涉及了很多知识,例如数据结构里面的哈希表,c++中的迭代器,因此,需要对于每一个疑惑逐一击破。 问题描述 You have a lock in front of you with 4 circular wheels. Each wheel has 10 slots: '0', '1', 阅读全文
posted @ 2019-08-28 05:45 schaffen 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 问题描述 Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. An island is surrounded by water and is formed by connecting ad 阅读全文
posted @ 2019-08-28 04:04 schaffen 阅读(82) 评论(0) 推荐(0) 编辑
摘要: Python关于lambda表达式的小知识点 本篇内容 没有 对于lambda表达式的 全部介绍,只涉及基础了理解,和浅显的实例。 一 基本的介绍 上述两个代码的效果是相同的。 f 是函数的名字,lambda标志着 f 是一个 函数,冒号左边是输入量,右边是输出量。 如果遇到两个变量,例如 x 和 阅读全文
posted @ 2019-08-25 23:48 schaffen 阅读(238) 评论(0) 推荐(0) 编辑