Skip to content

Commit 96203c9

Browse files
refactor 122
1 parent 81f5f80 commit 96203c9

File tree

1 file changed

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

1 file changed

+0
-9
lines changed

src/main/java/com/fishercoder/solutions/_122.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
11
package com.fishercoder.solutions;
22

3-
/**
4-
* 122. Best Time to Buy and Sell Stock II
5-
*
6-
* Say you have an array for which the ith element is the price of a given stock on day i.
7-
* Design an algorithm to find the maximum profit. You may complete as many transactions as you like
8-
* (ie, buy one and sell one share of the stock multiple times).
9-
* However, you may not engage in multiple transactions at the same time (ie, you must sell the stock before you buy again).
10-
* */
11-
123
public class _122 {
134
public static class Solution1 {
145
//peak and valley approach

0 commit comments

Comments
 (0)