摘要:
Sometimes after mapping and filtering a stream, you need to use it more than one time. For example, find the maximum and count all the elements of a r 阅读全文
摘要:
Implement a method for finding min and max elements of a stream in accordance with a given comparator. The found elements pass to minMaxConsumer in th 阅读全文
摘要:
Given a class named Range. It represents a range from A (inclusive) to B (exclusive). The class implements the interface Iterable, therefore, an insta 阅读全文
摘要:
You're dealing with a string consisting of brackets. Write a program to examine whether the pairs of "{", "}", "(", ")", "[", "]" are correct or balan 阅读全文
摘要:
Some info: HTML is a markup language, that is based on tags. There are many types of tags, for example, html, div, h1, h2. Each type of tag has start 阅读全文
摘要:
Write a program simulating a stack that can effectively return the current max element. Your program should read a sequence of commands of different t 阅读全文
摘要:
The simplest spell checker is the one based on a list of known words. Every word in the text is being searched for in this list and, if such word was 阅读全文