You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| 0438 |[Find All Anagrams in a String](src/main/kotlin/g0401_0500/s0438_find_all_anagrams_in_a_string/Solution.kt)| Medium | Top_100_Liked_Questions, String, Hash_Table, Sliding_Window | 561 | 54.68
| 0215 |[Kth Largest Element in an Array](src/main/kotlin/g0201_0300/s0215_kth_largest_element_in_an_array/Solution.kt)| Medium | Top_100_Liked_Questions, Top_Interview_Questions, Array, Sorting, Heap_Priority_Queue, Divide_and_Conquer, Quickselect, Data_Structure_II_Day_20_Heap_Priority_Queue | 839 | 34.43
| 0201 |[Bitwise AND of Numbers Range](src/main/kotlin/g0201_0300/s0201_bitwise_and_of_numbers_range/Solution.kt)| Medium | Bit_Manipulation, Algorithm_II_Day_19_Bit_Manipulation | 368 | 80.00
| 0199 |[Binary Tree Right Side View](src/main/kotlin/g0101_0200/s0199_binary_tree_right_side_view/Solution.kt)| Medium | Depth_First_Search, Breadth_First_Search, Tree, Binary_Tree, Data_Structure_II_Day_16_Tree, Level_2_Day_15_Tree | 194 | 92.89
Given two strings `s` and `t`, _determine if they are isomorphic_.
6
+
7
+
Two strings `s` and `t` are isomorphic if the characters in `s` can be replaced to get `t`.
8
+
9
+
All occurrences of a character must be replaced with another character while preserving the order of characters. No two characters may map to the same character, but a character may map to itself.
Given an array of positive integers `nums` and a positive integer `target`, return the minimal length of a **contiguous subarray** <code>[nums<sub>l</sub>, nums<sub>l+1</sub>, ..., nums<sub>r-1</sub>, nums<sub>r</sub>]</code> of which the sum is greater than or equal to `target`. If there is no such subarray, return `0` instead.
6
+
7
+
**Example 1:**
8
+
9
+
**Input:** target = 7, nums = [2,3,1,2,4,3]
10
+
11
+
**Output:** 2
12
+
13
+
**Explanation:** The subarray [4,3] has the minimal length under the problem constraint.
14
+
15
+
**Example 2:**
16
+
17
+
**Input:** target = 4, nums = [1,4,4]
18
+
19
+
**Output:** 1
20
+
21
+
**Example 3:**
22
+
23
+
**Input:** target = 11, nums = [1,1,1,1,1,1,1,1]
24
+
25
+
**Output:** 0
26
+
27
+
**Constraints:**
28
+
29
+
* <code>1 <= target <= 10<sup>9</sup></code>
30
+
* <code>1 <= nums.length <= 10<sup>5</sup></code>
31
+
* <code>1 <= nums[i] <= 10<sup>4</sup></code>
32
+
33
+
**Follow up:** If you have figured out the `O(n)` solution, try coding another solution of which the time complexity is `O(n log(n))`.
There are a total of `numCourses` courses you have to take, labeled from `0` to `numCourses - 1`. You are given an array `prerequisites` where <code>prerequisites[i] = [a<sub>i</sub>, b<sub>i</sub>]</code> indicates that you **must** take course <code>b<sub>i</sub></code> first if you want to take course <code>a<sub>i</sub></code>.
6
+
7
+
* For example, the pair `[0, 1]`, indicates that to take course `0` you have to first take course `1`.
8
+
9
+
Return _the ordering of courses you should take to finish all courses_. If there are many valid answers, return **any** of them. If it is impossible to finish all courses, return **an empty array**.
**Explanation:** There are a total of 4 courses to take. To take course 3 you should have finished both courses 1 and 2. Both courses 1 and 2 should be taken after you finished course 0. So one correct course order is [0,1,2,3]. Another correct ordering is [0,2,1,3].
0 commit comments