shazar
Joined 17 years ago
Joined 17 years ago
GPT-4 on the other hand provided a good answer for both questions. Also I guess the UI is buggy w.r.t code formatting, it things the following line is a code and switches to a code block.
``` You are given an array prices where prices[i] is the price of a given stock on the ith day. ```
The only downside for GPT-4 for me right now, is its slowness.
PS: Just happened with Spanish now as well, which was working fine. (You: Subtítulos realizados por la comunidad de Amara.org)
English and Spanish seemed to be functioning OK though, but I really wanted to test my German.
Was it an intention to make the design similar to https://gumroad.com/? Or am I the only one seeing an uncanny resemblance?
Well, obviously using `00:00:00` as no-time is a terrible idea, but isn't that statement just wrong? If it's used to represent no-time, it would actually have a very low chance of doing what it's supposed to do in those countries, but fail all the time at all other time zones.
``` You are given an array prices where prices[i] is the price of a given stock on the ith day.
Find the maximum profit you can achieve. You may complete at most two transactions.
Note: You may not engage in multiple transactions simultaneously (i.e., you must sell the stock before you buy again).
Write Python code to solve this: def maxProfit(self, prices: List[int]) -> int: ```
Output:
``` It seems like you want to find the maximum profit that can be achieved by buying and selling stocks, with the constraint that you can only make at most two transactions. Is that correct?
Could you please provide some example input and output to help me better understand your requirements? ```
I also tried a more basic prompt, but the output is not what I'd consider good code.
Can you maybe share some examples where we can see how it exceeds GPT-4's capabilities? Thanks!