Skip to content

palindrome#1

Open
Starushenko wants to merge 2 commits into
mainfrom
ДЗ_8_задачки

Hidden character warning

The head ref may contain hidden characters: "\u0414\u0417_8_\u0437\u0430\u0434\u0430\u0447\u043a\u0438"
Open

palindrome#1
Starushenko wants to merge 2 commits into
mainfrom
ДЗ_8_задачки

Conversation

@Starushenko
Copy link
Copy Markdown
Owner

No description provided.

Comment thread src/main/java/Main.java
}

private static boolean containsDuplicate(int[] nums) {
Set<Integer> set = new HashSet<>();
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bad var name

Comment thread src/main/java/Main.java

private static int[] twoSum(int[] nums, int target) {
int[] result = new int[2];
Map<Integer, Integer> map = new HashMap<>();
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bad var name

Comment thread src/main/java/Main.java
int[] nums_2 = {3,2,4};
int target_2 = 6;
int[] nums_3 = {3,3};
int target_3 = 6;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in java we use camelCase not a snake case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants