Skip to content

Commit dabf260

Browse files
committed
Wrap task description links in javadoc into <a href> tags
1 parent 226521b commit dabf260

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+58
-54
lines changed

Diff for: src/main/java/by/andd3dfx/cache/LFUCacheUsingLinkedHashSet.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
/**
1313
* <pre>
14-
* https://leetcode.com/problems/lfu-cache/
14+
* <a href="https://leetcode.com/problems/lfu-cache/">Task description</a>
1515
*
1616
* Design and implement a data structure for Least Frequently Used (LFU) cache.
1717
* It should support the following operations: get and put.

Diff for: src/main/java/by/andd3dfx/cache/LFUCacheUsingTime.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
/**
1111
* <pre>
12-
* https://leetcode.com/problems/lfu-cache/
12+
* <a href="https://leetcode.com/problems/lfu-cache/">Task description</a>
1313
*
1414
* Design and implement a data structure for Least Frequently Used (LFU) cache.
1515
* It should support the following operations: get and put.

Diff for: src/main/java/by/andd3dfx/cache/LRUCache.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
/**
1111
* <pre>
12-
* https://leetcode.com/problems/lru-cache/
12+
* <a href="https://leetcode.com/problems/lru-cache/">Task description</a>
1313
*
1414
* Design and implement a data structure for Least Recently Used (LRU) cache.
1515
*

Diff for: src/main/java/by/andd3dfx/collections/ContainsDuplicates.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
/**
66
* <pre>
7-
* https://leetcode.com/problems/contains-duplicate/
7+
* <a href="https://leetcode.com/problems/contains-duplicate/">Task description</a>
88
*
99
* Given an integer array nums, return true if any value appears at least twice in the array,
1010
* and return false if every element is distinct.

Diff for: src/main/java/by/andd3dfx/collections/RemoveDuplicatesFromSortedArray.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/**
44
* <pre>
5-
* https://leetcode.com/problems/remove-duplicates-from-sorted-array/
5+
* <a href="https://leetcode.com/problems/remove-duplicates-from-sorted-array/">Task description</a>
66
*
77
* Given an integer array nums sorted in non-decreasing order, remove the duplicates in-place such that each
88
* unique element appears only once. The relative order of the elements should be kept the same. Then return

Diff for: src/main/java/by/andd3dfx/collections/RemoveDuplicatesFromSortedArray_II.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/**
44
* <pre>
5-
* https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/
5+
* <a href="https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/">Task description</a>
66
*
77
* Given an integer array nums sorted in non-decreasing order, remove some duplicates in-place such that each unique
88
* element appears at most twice. The relative order of the elements should be kept the same.

Diff for: src/main/java/by/andd3dfx/collections/RemoveDuplicatesFromSortedLinkedList.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
/**
77
* <pre>
8-
* https://leetcode.com/problems/remove-duplicates-from-sorted-list/
8+
* <a href="https://leetcode.com/problems/remove-duplicates-from-sorted-list/">Task description</a>
99
*
1010
* Given the head of a sorted linked list, delete all duplicates such that each element appears only once.
1111
* Return the linked list sorted as well.

Diff for: src/main/java/by/andd3dfx/collections/RemoveDuplicatesFromSortedLinkedList_II.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
/**
1010
* <pre>
11-
* https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/
11+
* <a href="https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/">Task description</a>
1212
*
1313
* Given the head of a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers
1414
* from the original list. Return the linked list sorted as well.

Diff for: src/main/java/by/andd3dfx/collections/RotateLinkedList.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
/**
77
* <pre>
8-
* https://leetcode.com/problems/rotate-list/
8+
* <a href="https://leetcode.com/problems/rotate-list/">Task description</a>
99
*
1010
* Given the head of a linked list, rotate the list to the right by k places.
1111
*

Diff for: src/main/java/by/andd3dfx/common/BracketsExpressionValidator.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
/**
99
* <pre>
10-
* https://leetcode.com/problems/valid-parentheses/description/
10+
* <a href="https://leetcode.com/problems/valid-parentheses/description/">Task description</a>
1111
*
1212
* Есть скобочное выражение с разными видами скобок: {}, (), [], <>.
1313
* Проверить, что оно правильное.

Diff for: src/main/java/by/andd3dfx/common/ClimbingStairs.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
/**
77
* <pre>
8-
* https://leetcode.com/problems/climbing-stairs/description/
8+
* <a href="https://leetcode.com/problems/climbing-stairs/description/">Task description</a>
99
*
1010
* You are climbing a staircase. It takes n steps to reach the top.
1111
* Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?

Diff for: src/main/java/by/andd3dfx/common/DoorsNKeys.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/**
44
* <pre>
5-
* https://codeforces.com/problemset/problem/1709/A
5+
* <a href="https://codeforces.com/problemset/problem/1709/A">Task description</a>
66
*
77
* Перед вами три двери, пронумерованные от 1 до 3 слева направо. На каждой двери висит замок,
88
* который может быть открытым только ключом, на котором написано то же число, что и на двери.

Diff for: src/main/java/by/andd3dfx/common/GenerateParentheses.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
/**
77
* <pre>
8-
* https://leetcode.com/problems/generate-parentheses/
8+
* <a href="https://leetcode.com/problems/generate-parentheses/">Task description</a>
99
*
1010
* Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.
1111
*

Diff for: src/main/java/by/andd3dfx/common/MatrixRotation.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/**
44
* <pre>
5-
* https://www.hackerrank.com/challenges/matrix-rotation-algo/problem
5+
* <a href="https://www.hackerrank.com/challenges/matrix-rotation-algo/problem">Task description</a>
66
*
77
* You are given a 2D matrix of dimension m*n and a positive integer r. You have to rotate the matrix times and
88
* print the resultant matrix. Rotation should be in anti-clockwise direction.

Diff for: src/main/java/by/andd3dfx/common/MaximumGap.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
/**
66
* <pre>
7-
* https://leetcode.com/problems/maximum-gap/description/
7+
* <a href="https://leetcode.com/problems/maximum-gap/description/">Task description</a>
88
*
99
* Given an integer array nums, return the maximum difference between two successive elements in its sorted form.
1010
* If the array contains less than two elements, return 0.

Diff for: src/main/java/by/andd3dfx/common/Permutations.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
/**
88
* <pre>
9-
* https://leetcode.com/problems/permutations/
9+
* <a href="https://leetcode.com/problems/permutations/">Task description</a>
1010
*
1111
* Given an array nums of distinct integers, return all the possible permutations.
1212
* You can return the answer in any order.

Diff for: src/main/java/by/andd3dfx/common/RemoveElement.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/**
44
* <pre>
5-
* https://leetcode.com/problems/remove-element/
5+
* <a href="https://leetcode.com/problems/remove-element/">Task description</a>
66
*
77
* Given an integer array nums and an integer val, remove all occurrences of val in nums in-place. The order of the
88
* elements may be changed. Then return the number of elements in nums which are not equal to val.

Diff for: src/main/java/by/andd3dfx/common/SortedSquares.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
/**
1313
* <pre>
14-
* https://leetcode.com/problems/squares-of-a-sorted-array/
14+
* <a href="https://leetcode.com/problems/squares-of-a-sorted-array/">Task description</a>
1515
*
1616
* Дан массив целых чисел, отсортированный по возрастанию.
1717
* Вернуть массив, содержащий эл-ты исходного массива в квадрате, также отсортированный по возрастанию.

Diff for: src/main/java/by/andd3dfx/common/ValidAnagram.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
/**
88
* <pre>
9-
* https://leetcode.com/problems/valid-anagram/
9+
* <a href="https://leetcode.com/problems/valid-anagram/">Task description</a>
1010
*
1111
* Given two strings s and t, return true if t is an anagram of s, and false otherwise.
1212
* An Anagram is a word or phrase formed by rearranging the letters of a different word or phrase,

Diff for: src/main/java/by/andd3dfx/dynamic/BestTimeToBuyNSellStock.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/**
44
* <pre>
5-
* https://leetcode.com/explore/interview/card/top-interview-questions-easy/97/dynamic-programming/572/
5+
* <a href="https://leetcode.com/explore/interview/card/top-interview-questions-easy/97/dynamic-programming/572/">Task description</a>
66
*
77
* You are given an array prices where prices[i] is the price of a given stock on the ith day.
88
*

Diff for: src/main/java/by/andd3dfx/dynamic/ChangeWithMinNumberOfCoins.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
/**
88
* <pre>
9-
* https://www.geeksforgeeks.org/find-minimum-number-of-coins-that-make-a-change/?ref=lbp
9+
* <a href="https://www.geeksforgeeks.org/find-minimum-number-of-coins-that-make-a-change/?ref=lbp">Task description</a>
1010
*
1111
* Given a value V, if we want to make a change for V cents, and we have an infinite supply of each of
1212
* C = { C1, C2, .., Cm} valued coins, what is the minimum number of coins to make the change?

Diff for: src/main/java/by/andd3dfx/dynamic/RestoreIPAddress.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
/**
77
* <pre>
8-
* https://leetcode.com/problems/restore-ip-addresses/
8+
* <a href="https://leetcode.com/problems/restore-ip-addresses/">Task description</a>
99
*
1010
* A valid IP address consists of exactly four integers separated by single dots.
1111
* Each integer is between 0 and 255 (inclusive) and cannot have leading zeros.

Diff for: src/main/java/by/andd3dfx/multithreading/BuildingH2O.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
/**
66
* <pre>
7-
* https://leetcode.com/problems/building-h2o/description/
7+
* <a href="https://leetcode.com/problems/building-h2o/description/">Task description</a>
88
*
99
* There are two kinds of threads: oxygen and hydrogen. Your goal is to group these threads to form water molecules.
1010
*

Diff for: src/main/java/by/andd3dfx/multithreading/FooBarNTimes.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
/**
1111
* <pre>
12-
* https://leetcode.com/problems/print-foobar-alternately/
12+
* <a href="https://leetcode.com/problems/print-foobar-alternately/">Task description</a>
1313
*
1414
* Suppose you are given the following code:
1515
* class FooBar {

Diff for: src/main/java/by/andd3dfx/multithreading/PrintInOrder.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
/**
66
* <pre>
7-
* https://leetcode.com/problems/print-in-order/
7+
* <a href="https://leetcode.com/problems/print-in-order/">Task description</a>
88
*
99
* Suppose we have a class:
1010
*

Diff for: src/main/java/by/andd3dfx/numeric/AddDigits.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/**
44
* <pre>
5-
* https://leetcode.com/problems/add-digits/description/
5+
* <a href="https://leetcode.com/problems/add-digits/description/">Task description</a>
66
*
77
* Given an integer num, repeatedly add all its digits until the result has only one digit, and return it.
88
*

Diff for: src/main/java/by/andd3dfx/numeric/CountOnesInBinaryForm.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/**
44
* <pre>
5-
* https://leetcode.com/problems/number-of-1-bits/description/
5+
* <a href="https://leetcode.com/problems/number-of-1-bits/description/">Task description</a>
66
*
77
* Write a function that takes the binary representation of a positive integer and returns
88
* the number of set bits it has (also known as the Hamming weight).

Diff for: src/main/java/by/andd3dfx/numeric/FindNumberWhichAppearsOnce.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
/**
66
* <pre>
7-
* https://leetcode.com/problems/single-number/
7+
* <a href="https://leetcode.com/problems/single-number/">Task description</a>
88
*
99
* Given a non-empty array of integers nums, every element appears twice except for one. Find that single one.
1010
* You must implement a solution with a linear runtime complexity and use only constant extra space.

Diff for: src/main/java/by/andd3dfx/numeric/IntegerToRoman.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
/**
66
* <pre>
7-
* https://leetcode.com/problems/integer-to-roman/description/
7+
* <a href="https://leetcode.com/problems/integer-to-roman/description/">Task description</a>
88
*
99
* Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M.
1010
* Symbol Value

Diff for: src/main/java/by/andd3dfx/numeric/MaximumSwap.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/**
44
* <pre>
5-
* https://leetcode.com/problems/maximum-swap/
5+
* <a href="https://leetcode.com/problems/maximum-swap/">Task description</a>
66
*
77
* You are given an integer num. You can swap two digits at most once to get the maximum valued number.
88
* Return the maximum valued number you can get.

Diff for: src/main/java/by/andd3dfx/numeric/MoveZeroes.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
/**
66
* <pre>
7-
* https://leetcode.com/problems/move-zeroes/
7+
* <a href="https://leetcode.com/problems/move-zeroes/">Task description</a>
88
*
99
* Given an integer array nums, move all 0's to the end of it while maintaining the relative order of the non-zero elements.
1010
*

Diff for: src/main/java/by/andd3dfx/numeric/PalindromeNumber.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
package by.andd3dfx.numeric;
22

33
/**
4-
* https://leetcode.com/problems/palindrome-number/
5-
* <p>
4+
* <pre>
5+
* <a href="https://leetcode.com/problems/palindrome-number/">Task description</a>
6+
*
67
* Given an integer x, return true if x is a palindrome, and false otherwise.
8+
* </pre>
79
*/
810
public class PalindromeNumber {
911

Diff for: src/main/java/by/andd3dfx/numeric/PlusOne.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/**
44
* <pre>
5-
* https://leetcode.com/problems/plus-one/
5+
* <a href="https://leetcode.com/problems/plus-one/">Task description</a>
66
*
77
* You are given a large integer represented as an integer array digits, where each digits[i] is the ith digit
88
* of the integer. The digits are ordered from most significant to least significant in left-to-right order.

Diff for: src/main/java/by/andd3dfx/numeric/PowerOfThree.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/**
44
* <pre>
5-
* https://leetcode.com/problems/power-of-three/description/
5+
* <a href="https://leetcode.com/problems/power-of-three/description/">Task description</a>
66
*
77
* Given an integer n, return true if it is a power of three. Otherwise, return false.
88
*

Diff for: src/main/java/by/andd3dfx/numeric/PowerOfTwo.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/**
44
* <pre>
5-
* https://leetcode.com/problems/power-of-two/description/
5+
* <a href="https://leetcode.com/problems/power-of-two/description/">Task description</a>
66
*
77
* Given an integer n, return true if it is a power of two. Otherwise, return false.
88
* An integer n is a power of two, if there exists an integer x such that n == 2^x.

Diff for: src/main/java/by/andd3dfx/numeric/RaiseToPower.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
/**
77
* <pre>
8-
* https://leetcode.com/problems/powx-n/
8+
* <a href="https://leetcode.com/problems/powx-n/">Task description</a>
99
*
1010
* Raise number a to power p
1111
*

Diff for: src/main/java/by/andd3dfx/numeric/RomanToInteger.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
/**
66
* <pre>
7-
* https://leetcode.com/problems/roman-to-integer/description/
7+
* <a href="https://leetcode.com/problems/roman-to-integer/description/">Task description</a>
88
*
99
* Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M.
1010
*

Diff for: src/main/java/by/andd3dfx/numeric/SumOfTwoIntegersWithoutUsingPlusMinus.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/**
44
* <pre>
5-
* https://leetcode.com/problems/sum-of-two-integers/
5+
* <a href="https://leetcode.com/problems/sum-of-two-integers/">Task description</a>
66
*
77
* Given two integers a and b, return the sum of the two integers without using the operators + and -.
88
*

Diff for: src/main/java/by/andd3dfx/numeric/ValidNumber.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/**
44
* <pre>
5-
* https://leetcode.com/problems/valid-number/description/
5+
* <a href="https://leetcode.com/problems/valid-number/description/">Task description</a>
66
*
77
* A valid number can be split up into these components (in order):
88
*

Diff for: src/main/java/by/andd3dfx/search/CountNegativesInSortedMatrix.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/**
44
* <pre>
5-
* https://leetcode.com/problems/count-negative-numbers-in-a-sorted-matrix/description/
5+
* <a href="https://leetcode.com/problems/count-negative-numbers-in-a-sorted-matrix/description/">Task description</a>
66
*
77
* Given a m x n matrix grid which is sorted in non-increasing order both row-wise and column-wise,
88
* return the number of negative numbers in grid.

Diff for: src/main/java/by/andd3dfx/search/FirstNLastPosOfElementInSortedArray.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/**
44
* <pre>
5-
* https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/
5+
* <a href="https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/">Task description</a>
66
*
77
* Given an array of integers nums sorted in non-decreasing order, find the starting and ending position of a given target value.
88
* If target is not found in the array, return [-1, -1].

Diff for: src/main/java/by/andd3dfx/search/FirstSmallestMissingPositive.java

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
package by.andd3dfx.search;
22

33
/**
4-
* https://leetcode.com/problems/first-missing-positive/
5-
* <p>
4+
* <pre>
5+
* <a href="https://leetcode.com/problems/first-missing-positive/">Task description</a>
6+
*
67
* Given an unsorted integer array nums, return the smallest missing positive integer.
7-
* <p>
8+
*
89
* You must implement an algorithm that runs in O(n) time and uses constant extra space.
10+
* </pre>
911
*
1012
* @see <a href="https://youtu.be/0i7x_YEXOpA">Video solution</a>
1113
*/

Diff for: src/main/java/by/andd3dfx/search/wordsearch/WordSearch.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/**
44
* <pre>
5-
* https://leetcode.com/problems/word-search/
5+
* <a href="https://leetcode.com/problems/word-search/">Task description</a>
66
*
77
* Given an m x n grid of characters board and a string word, return true if word exists in the grid.
88
*

0 commit comments

Comments
 (0)