We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
final
1 parent 99e6f97 commit 1402ab9Copy full SHA for 1402ab9
src/main/java/com/thealgorithms/datastructures/trees/SplayTree.java
@@ -177,7 +177,7 @@ private Node rotateLeft(Node x) {
177
* @param key The key to splay around.
178
* @return The new root of the splayed subtree.
179
*/
180
- private final Node splay(Node root, int key) {
+ private Node splay(Node root, int key) {
181
if (root == null || root.key == key) {
182
return root;
183
}
@@ -215,7 +215,7 @@ private final Node splay(Node root, int key) {
215
216
217
218
- private final Node insertRec(Node root, int key) {
+ private Node insertRec(Node root, int key) {
219
if (root == null) {
220
return new Node(key);
221
0 commit comments