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
|[Leetcode-12](https://leetcode.com/problems/integer-to-roman/)| Integer To Roman |[c++](./leetcode/12.integer-to-roman.cpp), [python3](./leetcode/12.integer-to-roman.py)| Math | O\(N\)| O\(1\)| - |
127
127
|[Leetcode-973](https://leetcode.com/problems/k-closest-points-to-origin/)| K Closest Points To Origin |[c++](./leetcode/973.k-closest-points-to-origin.cpp), [python3](./leetcode/973.k-closest-points-to-origin.py)| Math | O\(NlogN\)| O\(K\)| - |
128
128
|[Leetcode-149](https://leetcode.com/problems/max-points-on-a-line/)| Max Points On A Line |[c++](./leetcode/149.max-points-on-a-line.cpp), [python3](./leetcode/149.max-points-on-a-line.py)| Math | O\(N^2\)| O\(N\)| - |
129
+
|[Leetcode-1610](https://leetcode.com/problems/maximum-number-of-visible-points/)| Maximum Number Of Visible Points |[c++](./leetcode/1610.maximum-number-of-visible-points.cpp), [python3](./leetcode/1610.maximum-number-of-visible-points.py)| Math | O\(NlogN\)| O\(N\)| - |
129
130
|[Leetcode-462](https://leetcode.com/problems/minimum-moves-to-equal-array-elements-ii/)| Minimum Moves To Equal Array Elements II |[c++](./leetcode/462.minimum-moves-to-equal-array-elements-ii.cpp), [python3](./leetcode/462.minimum-moves-to-equal-array-elements-ii.py)| Math | O\(NlogN\)| O\(1\)| - |
|[Leetcode-326](https://leetcode.com/problems/power-of-three/)| Power Of Three |[c++](./leetcode/326.power-of-three.cpp), [python3](./leetcode/326.power-of-three.py)| Math | O\(1\)| O\(1\)| - |
|[Leetcode-863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)| All Nodes Distance K In Binary Tree |[c++](./leetcode/863.all-nodes-distance-k-in-binary-tree.cpp), [python3](./leetcode/863.all-nodes-distance-k-in-binary-tree.py)| Hash Table | O\(N\)| O\(N\)| - |
|[Leetcode-2364](https://leetcode.com/problems/count-number-of-bad-pairs/)| Count Number Of Bad Pairs |[c++](./leetcode/2364.count-number-of-bad-pairs.cpp), [python3](./leetcode/2364.count-number-of-bad-pairs.py)| Hash Table | O\(N\)| O\(N\)| - |
489
+
|[Leetcode-3306](https://leetcode.com/problems/count-of-substrings-containing-every-vowel-and-k-consonants-ii/)| Count Of Substrings Containing Every Vowel And K Consonants II |[c++](./leetcode/3306.count-of-substrings-containing-every-vowel-and-k-consonants-ii.cpp), [python3](./leetcode/3306.count-of-substrings-containing-every-vowel-and-k-consonants-ii.py)| Hash Table | O\(N\)| O\(N\)| - |
488
490
|[Leetcode-697](https://leetcode.com/problems/degree-of-an-array/)| Degree Of An Array |[c++](./leetcode/697.degree-of-an-array.cpp), [python3](./leetcode/697.degree-of-an-array.py)| Hash Table | O\(N\)| O\(N\)| - |
|[Leetcode-2349](https://leetcode.com/problems/design-a-number-container-system/)| Design A Number Container System |[c++](./leetcode/2349.design-a-number-container-system.cpp), [python3](./leetcode/2349.design-a-number-container-system.py)| Hash Table | O\(LogN\)| O\(N\)| - |
|[Leetcode-3306](https://leetcode.com/problems/count-of-substrings-containing-every-vowel-and-k-consonants-ii/)| Count Of Substrings Containing Every Vowel And K Consonants II |[c++](./leetcode/3306.count-of-substrings-containing-every-vowel-and-k-consonants-ii.cpp), [python3](./leetcode/3306.count-of-substrings-containing-every-vowel-and-k-consonants-ii.py)| Sliding Window | O\(N\)| O\(N\)| - |
|[Leetcode-718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)| Maximum Length Of Repeated Subarray |[c++](./leetcode/718.maximum-length-of-repeated-subarray.cpp), [python3](./leetcode/718.maximum-length-of-repeated-subarray.py)| Sliding Window | O\(NM\)| O\(NM\)| - |
768
771
|[Leetcode-3090](https://leetcode.com/problems/maximum-length-substring-with-two-occurrences/)| Maximum Length Substring With Two Occurrences |[c++](./leetcode/3090.maximum-length-substring-with-two-occurrences.cpp), [python3](./leetcode/3090.maximum-length-substring-with-two-occurrences.py)| Sliding Window | O\(N\)| O\(N\)| - |
769
772
|[Leetcode-1297](https://leetcode.com/problems/maximum-number-of-occurrences-of-a-substring/)| Maximum Number Of Occurrences Of A Substring |[c++](./leetcode/1297.maximum-number-of-occurrences-of-a-substring.cpp), [python3](./leetcode/1297.maximum-number-of-occurrences-of-a-substring.py)| Sliding Window | O\(N\)| O\(N^2\)| - |
773
+
|[Leetcode-1610](https://leetcode.com/problems/maximum-number-of-visible-points/)| Maximum Number Of Visible Points |[c++](./leetcode/1610.maximum-number-of-visible-points.cpp), [python3](./leetcode/1610.maximum-number-of-visible-points.py)| Sliding Window | O\(NlogN\)| O\(N\)| - |
770
774
|[Leetcode-1456](https://leetcode.com/problems/maximum-number-of-vowels-in-a-substring-of-given-length/)| Maximum Number Of Vowels In A Substring Of Given Length |[c++](./leetcode/1456.maximum-number-of-vowels-in-a-substring-of-given-length.cpp), [python3](./leetcode/1456.maximum-number-of-vowels-in-a-substring-of-given-length.py)| Sliding Window | O\(N\)| O\(1\)| - |
771
775
|[Leetcode-1423](https://leetcode.com/problems/maximum-points-you-can-obtain-from-cards/)| Maximum Points You Can Obtain From Cards |[c++](./leetcode/1423.maximum-points-you-can-obtain-from-cards.cpp), [python3](./leetcode/1423.maximum-points-you-can-obtain-from-cards.py)| Sliding Window | O\(N\)| O\(1\)| - |
772
776
|[Leetcode-2841](https://leetcode.com/problems/maximum-sum-of-almost-unique-subarray/)| Maximum Sum Of Almost Unique Subarray |[c++](./leetcode/2841.maximum-sum-of-almost-unique-subarray.cpp), [python3](./leetcode/2841.maximum-sum-of-almost-unique-subarray.py)| Sliding Window | O\(N\)| O\(N\)| - |
|[Leetcode-3281](https://leetcode.com/problems/maximize-score-of-numbers-in-ranges/)| Maximize Score Of Numbers In Ranges |[c++](./leetcode/3281.maximize-score-of-numbers-in-ranges.cpp), [python3](./leetcode/3281.maximize-score-of-numbers-in-ranges.py)| Sorting | O\(NlogN \+ NlogD\)| O\(1\)| - |
825
829
|[Leetcode-2779](https://leetcode.com/problems/maximum-beauty-of-an-array-after-applying-operation/)| Maximum Beauty Of An Array After Applying Operation |[c++](./leetcode/2779.maximum-beauty-of-an-array-after-applying-operation.cpp), [python3](./leetcode/2779.maximum-beauty-of-an-array-after-applying-operation.py)| Sorting | O\(NlogN\)| O\(1\)| - |
826
830
|[Leetcode-646](https://leetcode.com/problems/maximum-length-of-pair-chain/)| Maximum Length Of Pair Chain |[c++](./leetcode/646.maximum-length-of-pair-chain.cpp), [python3](./leetcode/646.maximum-length-of-pair-chain.py)| Sorting | O\(NlogN\)| O\(N\)| - |
831
+
|[Leetcode-1610](https://leetcode.com/problems/maximum-number-of-visible-points/)| Maximum Number Of Visible Points |[c++](./leetcode/1610.maximum-number-of-visible-points.cpp), [python3](./leetcode/1610.maximum-number-of-visible-points.py)| Sorting | O\(NlogN\)| O\(N\)| - |
827
832
|[Leetcode-1235](https://leetcode.com/problems/maximum-profit-in-job-scheduling/)| Maximum Profit In Job Scheduling |[c++](./leetcode/1235.maximum-profit-in-job-scheduling.cpp), [python3](./leetcode/1235.maximum-profit-in-job-scheduling.py)| Sorting | O\(NlogN\)| O\(N\)| - |
828
833
|[Leetcode-2271](https://leetcode.com/problems/maximum-white-tiles-covered-by-a-carpet/)| Maximum White Tiles Covered By A Carpet |[c++](./leetcode/2271.maximum-white-tiles-covered-by-a-carpet.cpp), [python3](./leetcode/2271.maximum-white-tiles-covered-by-a-carpet.py)| Sorting | O\(NlogN\)| O\(1\)| - |
// You are given an array points, an integer angle, and your location, where location = [posx, posy] and points[i] = [xi, yi] both denote integral coordinates on the X-Y plane.
8
+
// Initially, you are facing directly east from your position. You cannot move from your position, but you can rotate. In other words, posx and posy cannot be changed. Your field of view in degrees is represented by angle, determining how wide you can see from any given view direction. Let d be the amount in degrees that you rotate counterclockwise. Then, your field of view is the inclusive range of angles [d - angle/2, d + angle/2].
9
+
//
10
+
// Your browser does not support the video tag or this video format.
11
+
//
12
+
// You can see some set of points if, for each point, the angle formed by the point, your position, and the immediate east direction from your position is in your field of view.
13
+
// There can be multiple points at one coordinate. There may be points at your location, and you can always see these points regardless of your rotation. Points do not obstruct your vision to other points.
14
+
// Return the maximum number of points you can see.
// Explanation: The shaded region represents your field of view. All points can be made visible in your field of view, including [3,3] even though [2,2] is in front and in the same line of sight.
# You are given an array points, an integer angle, and your location, where location = [posx, posy] and points[i] = [xi, yi] both denote integral coordinates on the X-Y plane.
8
+
# Initially, you are facing directly east from your position. You cannot move from your position, but you can rotate. In other words, posx and posy cannot be changed. Your field of view in degrees is represented by angle, determining how wide you can see from any given view direction. Let d be the amount in degrees that you rotate counterclockwise. Then, your field of view is the inclusive range of angles [d - angle/2, d + angle/2].
9
+
#
10
+
# Your browser does not support the video tag or this video format.
11
+
#
12
+
# You can see some set of points if, for each point, the angle formed by the point, your position, and the immediate east direction from your position is in your field of view.
13
+
# There can be multiple points at one coordinate. There may be points at your location, and you can always see these points regardless of your rotation. Points do not obstruct your vision to other points.
14
+
# Return the maximum number of points you can see.
# Explanation: The shaded region represents your field of view. All points can be made visible in your field of view, including [3,3] even though [2,2] is in front and in the same line of sight.
0 commit comments