Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 1.01 KB

README.md

File metadata and controls

29 lines (24 loc) · 1.01 KB

HW_Java_back

This set contains my solutions for Java backend homeworks

22_PrefixSuffix (Sets)

Write application PrefixSuffix

with interface

public interface IPrexixSuffixSearch  
{  
	void addWords(String[] words);                		//add Strings from array to your set  
	boolean containsWord(String word);            		//return true, if set contains this  
	StringString[] getWordsWithPrefix(String prefix);   	//return array of Strings, which start with the prefix  
	String[] getWordsWithSuffix(String suffix);   		//return array of Strings, which finish with the suffix  
}

//---------------

You must to write 2 implementation

  • for HashSet
  • for TreeSet

You will not have duplicate code in your implementations

22-1 tree-collections: Система подбора кандидатов Задача взята с ресурса:

https://github.com/netology-code/java-homeworks/tree/master/tree-collections/4.5.2