question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

binary-search-tree: add angle brackets when calling constructor

See original GitHub issue

Since the BST class uses generics it should be constructed using angle brackets. For example:

BST<Integer> binarySearchTree = new BST<>();

This is done sometimes in BSTTest but not always. It should be done everywhere where a BST object is created in BSTTest.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ribhav-pahujacommented, Sep 29, 2017

@FridaTveit , I would like to contribute to this.

0reactions
FridaTveitcommented, Oct 4, 2017

Fixed in PR #842. Thanks @szielinski! 😃

I’m sorry if you were still working on it @ribhav-pahuja. I forgot about your comment when merging the PR, sorry. There should be lots of other good-first-patch issues you can work on though. Let me know if you have any problems finding any 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angle Bracket <> in Java with Examples - GeeksforGeeks
It means that the angle bracket takes a generic type, say T, in the definition and any class as a parameter during the...
Read more >
DIY: Binary Search Tree Iterator - Educative.io
Solve the interview question "Binary Search Tree Iterator" in this lesson. ... The input to the constructor of the BSTIterator class will be...
Read more >
ICS211: A09 - Zach Tomaszewski
Add a constructor that takes a java.util.Collection: In the constructor, create a List from the Collection, shuffle the list, and then build the...
Read more >
Asst. 3 * Syntax, Vars, Real F.P - ICS, UCI
Use | boxed text | instead of <angle brackets> for your nonterminals, ... window and give commands to add, remove, print, and search...
Read more >
Implementing a Binary Search Tree with Javascript
The recursion will stop when the currentNode's left attribute has the value null . class BinarySearchTree { constructor() { this.root = null; }...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found