Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8b10358

Browse files
refactor 209
1 parente42ecee commit8b10358

File tree

1 file changed

+0
-16
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+0
-16
lines changed

‎src/main/java/com/fishercoder/solutions/_209.java

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,5 @@
11
packagecom.fishercoder.solutions;
22

3-
/**
4-
* 209. Minimum Size Subarray Sum
5-
*
6-
* Given an array of n positive integers and a positive integer s,
7-
* find the minimal length of a contiguous subarray of which the sum ≥ s.
8-
* If there isn't one, return 0 instead.
9-
10-
For example, given the array [2,3,1,2,4,3] and s = 7,
11-
the subarray [4,3] has the minimal length under the problem constraint.
12-
13-
click to show more practice.
14-
15-
More practice:
16-
If you have figured out the O(n) solution,
17-
try coding another solution of which the time complexity is O(n log n).
18-
*/
193
publicclass_209 {
204

215
publicstaticclassSolution1 {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp