摘要: Description Implement function ToLowerCase() that has a string parameter str, and returns the same string in lowercase. Example 1: Input: "Hello" Outp 阅读全文
posted @ 2019-07-30 23:09 CodingYM 阅读(77) 评论(0) 推荐(0) 编辑
摘要: Description You're given strings J representing the types of stones that are jewels, and S representing the stones you have. Each character in S is a 阅读全文
posted @ 2019-07-30 22:41 CodingYM 阅读(122) 评论(0) 推荐(0) 编辑
摘要: Builder pattern builds a complex object using simple objects and using a step by step approach. This type of design pattern comes under creational pat 阅读全文
posted @ 2019-07-30 18:25 CodingYM 阅读(328) 评论(0) 推荐(0) 编辑
摘要: Facade pattern hides the complexities of the system and provides and interface to the client using which the client can access the system. This type o 阅读全文
posted @ 2019-07-29 15:36 CodingYM 阅读(253) 评论(0) 推荐(0) 编辑
摘要: Before we proceed to Prototype Design Pattern, We need to review on Clone() method in Java. The Object cloning is a way to create exact copy of an obj 阅读全文
posted @ 2019-07-29 13:05 CodingYM 阅读(308) 评论(0) 推荐(0) 编辑
摘要: Decorator pattern allows a user to add new functionality to an existing object without altering its structure. This type of design pattern comes under 阅读全文
posted @ 2019-07-26 18:29 CodingYM 阅读(172) 评论(0) 推荐(0) 编辑
摘要: Adapter pattern works as a bridge between two incompatible interfaces. This type of design pattern comes under structural pattern. This pattern involv 阅读全文
posted @ 2019-07-26 15:52 CodingYM 阅读(443) 评论(0) 推荐(0) 编辑
摘要: Abstract Factory patterns work around a super-factory which creates other factories. This factory is also called as factory of factories. This type of 阅读全文
posted @ 2019-07-25 16:08 CodingYM 阅读(340) 评论(0) 推荐(0) 编辑
摘要: Factory pattern is one of the most used design patterns in Java. This type of design pattern comes under creational pattern. Below is the diagram on t 阅读全文
posted @ 2019-07-25 14:05 CodingYM 阅读(348) 评论(0) 推荐(0) 编辑
摘要: This pattern involves a single class which is responsible to create an object while making sure that only single object gets created. This class provi 阅读全文
posted @ 2019-07-25 11:13 CodingYM 阅读(154) 评论(0) 推荐(0) 编辑