All Questions
5 questions
4
votes
1
answer
864
views
A Trie data structure in Java
this is the first time I' implementing a Trie. My goal was to make it as simple as possible. So here is the result:
Can I simplify anything else? Are there some things I can change to increase ...
1
vote
1
answer
973
views
Method that remove duplicates from a list of words in Java [closed]
Today, I took a coding challenge with this question:
Given a List of Strings, write a method removeDuplicates that removes duplicate words from the List and returns an ArrayList of all the unique ...
3
votes
1
answer
81
views
Printing different aspects of a binary tree
I had an assignment, for which I got full marks, but am really upset about the code I have written. I feel it is too manual and repetitive. Please help me make it more optimized.
I am making many ...
3
votes
2
answers
109
views
Game combo press model (substring search)
I'm trying to make a model for checking combo presses in a game. Given a list of Button (enum) presses, it returns the list of possible combos completed. I tried ...
5
votes
2
answers
2k
views
String representation of Tree
I have a Tree class, defined as follows:
...