Dan

蛋蛋的博客

ARTS #035

ARTS #035

ARTS 035 Algorihm 11. Container With Most Water Difficulty: Medium Given n non-negative integers a1, a2, …, an , where each represents a point at coordinate (i, ai). n vertical lines are drawn ...

Job negotiation for programmers: the basic principles

程序员找工作谈判的基本原则

Job negotiation for programmers: the basic principles 程序员找工作谈判的基本原则 You need to negotiate at a new job: for your salary, or benefits, or my personal favorite, a shorter workweek. You’re not sure w...

ARTS #034

ARTS #034

ARTS 034 Algorihm 292. Nim Game Difficulty: Easy You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take turns to remove 1 to ...

Design patterns by Tutorials— The power of OOP (part 3)

Adapter pattern in Swift Swift适配器模式

Design patterns by Tutorials— The power of OOP (part 3) Prerequisites — This tutorials series requires an intermediate level of expertise in object-oriented programming. You should have basic know...

ARTS #033

ARTS #033

ARTS 033 Algorihm 6. ZigZag Conversion Difficulty: Medium The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern i...

Design patterns by Tutorials— The power of OOP (part 2)

设计模式之旅--OOP的力量2

Design patterns by Tutorials — The power of OOP (part 2) Singleton Pattern: pure-singleton and semi-singleton design pattern in Swift 单例模式:Swift中的纯单例和半单例设计模式 Prerequisites — This blog series requ...

ARTS #032

ARTS #032

ARTS 032 这是第32篇 ARTS是由左耳朵耗子--陈皓发起的一个活动: 每周至少做一个leetcode的算法题、阅读并点评至少一篇英文技术文章、学习至少一个技术技巧、分享一篇有观点和思考的文章。(也就是Algorithm、Review、Tip、Share简称ARTS)。 从4月份开始,由于自己的私事把业余时间都占用了,所以arts暂停了差不多5个月了,从本周开始捡起来,之...

Design patterns by Tutorials— The power of OOP (part 1)

设计模式之旅--OOP的力量1

Design patterns by Tutorials— The power of OOP (part 1) Prerequisites — This blog series requires an intermediate level of expertise in object-oriented programming. You should have basic knowledge...

ARTS #031

ARTS #031

ARTS 031 这是第31篇 ARTS是由左耳朵耗子--陈皓发起的一个活动: 每周至少做一个leetcode的算法题、阅读并点评至少一篇英文技术文章、学习至少一个技术技巧、分享一篇有观点和思考的文章。(也就是Algorithm、Review、Tip、Share简称ARTS)。 Algorihm 算法题 9. 回文数 Difficulty: 简单 判断一个整数是否是回文数。...

ARTS #030

ARTS #030

ARTS 030 这是第30篇 ARTS是由左耳朵耗子--陈皓发起的一个活动: 每周至少做一个leetcode的算法题、阅读并点评至少一篇英文技术文章、学习至少一个技术技巧、分享一篇有观点和思考的文章。(也就是Algorithm、Review、Tip、Share简称ARTS),至少坚持一年。 Algorihm 算法题 7. 整数反转 Difficulty: 简单 给出一个 ...