Skip to content

Commit f8878de

Browse files
authored
Imroved readme files.
1 parent 1fc46a2 commit f8878de

File tree

4 files changed

+4
-4
lines changed
  • src.save/main/java
  • src/main/java/g1901_2000/s1938_maximum_genetic_difference_query

4 files changed

+4
-4
lines changed

src.save/main/java/g0401_0500/s0436_find_right_interval/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Medium
44

55
You are given an array of `intervals`, where <code>intervals[i] = [start<sub>i</sub>, end<sub>i</sub>]</code> and each <code>start<sub>i</sub></code> is **unique**.
66

7-
The **r****ight**** interval** for an interval `i` is an interval `j` such that <code>start<sub>j</sub></code><code> >= end<sub>i</sub></code> and <code>start<sub>j</sub></code> is **minimized**.
7+
The **right interval** for an interval `i` is an interval `j` such that <code>start<sub>j</sub></code><code> >= end<sub>i</sub></code> and <code>start<sub>j</sub></code> is **minimized**.
88

99
Return _an array of **right interval** indices for each interval `i`_. If no **right interval** exists for interval `i`, then put `-1` at index `i`.
1010

src.save/main/java/g0901_1000/s0948_bag_of_tokens/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Return _the largest possible **score** you can achieve after playing any number
1919

2020
**Output:** 0
2121

22-
**Explanation:****:** Playing the only token in the bag is impossible because you either have too little power or too little score.
22+
**Explanation:** Playing the only token in the bag is impossible because you either have too little power or too little score.
2323

2424
**Example 2:**
2525

src.save/main/java/g1801_1900/s1834_single_threaded_cpu/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Return _the order in which the CPU will process the tasks._
4343

4444
**Output:** [4,3,2,0,1]
4545

46-
**Explanation:****:** The events go as follows:
46+
**Explanation:** The events go as follows:
4747

4848
- At time = 7, all the tasks become available. Available tasks = {0,1,2,3,4}.
4949

src/main/java/g1901_2000/s1938_maximum_genetic_difference_query/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Hard
44

5-
There is a rooted tree consisting of `n` nodes numbered `0` to `n - 1`. Each node's number denotes its **unique genetic value** (i.e. the genetic value of node `x` is `x`). The **genetic difference** between two genetic values is defined as the **bitwise-****XOR** of their values. You are given the integer array `parents`, where `parents[i]` is the parent for node `i`. If node `x` is the **root** of the tree, then `parents[x] == -1`.
5+
There is a rooted tree consisting of `n` nodes numbered `0` to `n - 1`. Each node's number denotes its **unique genetic value** (i.e. the genetic value of node `x` is `x`). The **genetic difference** between two genetic values is defined as the **bitwise-XOR** of their values. You are given the integer array `parents`, where `parents[i]` is the parent for node `i`. If node `x` is the **root** of the tree, then `parents[x] == -1`.
66

77
You are also given the array `queries` where <code>queries[i] = [node<sub>i</sub>, val<sub>i</sub>]</code>. For each query `i`, find the **maximum genetic difference** between <code>val<sub>i</sub></code> and <code>p<sub>i</sub></code>, where <code>p<sub>i</sub></code> is the genetic value of any node that is on the path between <code>node<sub>i</sub></code> and the root (including <code>node<sub>i</sub></code> and the root). More formally, you want to maximize <code>val<sub>i</sub> XOR p<sub>i</sub></code>.
88

0 commit comments

Comments
 (0)