Skip to content

Commit c3072c2

Browse files
committed
Add links to YT. Add javadoc
1 parent ade0d98 commit c3072c2

4 files changed

Lines changed: 21 additions & 0 deletions

File tree

src/main/java/by/andd3dfx/numeric/GettingCloserToTheTarget.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
* Необходимо выяснить, может ли РК-2000 через заданное время t оказаться ровно на заданном расстоянии d от цели.
1818
* Для простоты считайте, что РК-2000 может мгновенно изменять свою скорость.
1919
* </pre>
20+
*
21+
* @see <a href="https://youtu.be/OXpju4Yzmo0">Video solution</a>
2022
*/
2123
public class GettingCloserToTheTarget {
2224

src/main/java/by/andd3dfx/numeric/NumberOfRecentCalls.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
* recentCounter.ping(3001); // requests = [1, 100, 3001], range is [1,3001], return 3
3333
* recentCounter.ping(3002); // requests = [1, 100, 3001, 3002], range is [2,3002], return 3
3434
* </pre>
35+
*
36+
* @see <a href="https://youtu.be/546AEEzHneY">Video solution</a>
3537
*/
3638
public class NumberOfRecentCalls {
3739

src/main/java/by/andd3dfx/string/ConsecutiveCharacters.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
* Output: 5
1919
* Explanation: The substring "eeeee" is of length 5 with the character 'e' only.
2020
* </pre>
21+
*
22+
* @see <a href="https://youtu.be/6dMXdSdOXG8">Video solution</a>
2123
*/
2224
public class ConsecutiveCharacters {
2325

src/main/java/by/andd3dfx/string/ReverseWordsInAStringIII.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
package by.andd3dfx.string;
22

3+
/**
4+
* <pre>
5+
* <a href="https://leetcode.com/problems/reverse-words-in-a-string-iii/description/">Task description</a>
6+
*
7+
* Given a string s, reverse the order of characters in each word within a sentence while still preserving whitespace and initial word order.
8+
*
9+
* Example 1:
10+
* Input: s = "Let's take LeetCode contest"
11+
* Output: "s'teL ekat edoCteeL tsetnoc"
12+
*
13+
* Example 2:
14+
* Input: s = "Mr Ding"
15+
* Output: "rM gniD"
16+
* </pre>
17+
*/
318
public class ReverseWordsInAStringIII {
419

520
public static String reverseWords(String s) {

0 commit comments

Comments
 (0)