Skip to main content
The 2025 Developer Survey results are in. Explore insights into technology and tools, careers, community and more. View results.

All Questions

Tagged with
Filter by
Sorted by
Tagged with
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 ...
Teodor Dyakov's user avatar
1 vote
1 answer
981 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 ...
TheLearner's user avatar
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 ...
Mayur Tolani's user avatar
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 ...
fluffychaos's user avatar
5 votes
2 answers
2k views

String representation of Tree

I have a Tree class, defined as follows: ...
Kao's user avatar
  • 2,434