Format code with prettier (#3375)

This commit is contained in:
acbin
2022-10-03 17:23:00 +08:00
committed by GitHub
parent 32b9b11ed5
commit e96f567bfc
464 changed files with 11483 additions and 6189 deletions

View File

@ -53,7 +53,11 @@ public class LargeTreeNode<E> extends TreeNode<E> {
* @param childNodes {@link Collection} of child Nodes.
* @see TreeNode#TreeNode(Object, Node)
*/
public LargeTreeNode(E data, LargeTreeNode<E> parentNode, Collection<LargeTreeNode<E>> childNodes) {
public LargeTreeNode(
E data,
LargeTreeNode<E> parentNode,
Collection<LargeTreeNode<E>> childNodes
) {
super(data, parentNode);
this.childNodes = childNodes;
}

View File

@ -20,8 +20,7 @@ public abstract class Node<E> {
/**
* Empty constructor.
*/
public Node() {
}
public Node() {}
/**
* Initializes the Nodes' data.

View File

@ -57,7 +57,12 @@ public class SimpleTreeNode<E> extends TreeNode<E> {
* @param rightNode Value to which the nodes' right child reference will be
* set.
*/
public SimpleTreeNode(E data, SimpleTreeNode<E> parentNode, SimpleTreeNode<E> leftNode, SimpleTreeNode<E> rightNode) {
public SimpleTreeNode(
E data,
SimpleTreeNode<E> parentNode,
SimpleTreeNode<E> leftNode,
SimpleTreeNode<E> rightNode
) {
super(data, parentNode);
this.leftNode = leftNode;
this.rightNode = rightNode;

View File

@ -6,7 +6,6 @@ package com.thealgorithms.devutils.searches;
* @author Podshivalov Nikita (https://github.com/nikitap492)
*/
public interface SearchAlgorithm {
/**
* @param key is an element which should be found
* @param array is an array where the element should be found