We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81f5f80 commit 96203c9Copy full SHA for 96203c9
src/main/java/com/fishercoder/solutions/_122.java
@@ -1,14 +1,5 @@
1
package com.fishercoder.solutions;
2
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
-
12
public class _122 {
13
public static class Solution1 {
14
//peak and valley approach
0 commit comments