HackerTrans
TopNewTrendsCommentsPastAskShowJobs

shazar

no profile record

comments

shazar
·il y a 3 ans·discuss
I tried with that option enabled and now it can't generate code at all. Here's my prompt:

``` 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!
shazar
·il y a 3 ans·discuss
I gave it two tries, GPT-4 was much better in both cases. Tried with two Leetcode questions. It came back with an empty response for one, and provided a worse code (O(n2) solutions when it can be done with linear time) for the other one.

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.
shazar
·il y a 3 ans·discuss
Curious about this, why do you think it hallucinates? Isn't that supposed to be the direct output from speech recognition?

PS: Just happened with Spanish now as well, which was working fine. (You: Subtítulos realizados por la comunidad de Amara.org)
shazar
·il y a 3 ans·discuss
No, still not working. Also tried a bunch of other languages and they all seemed to work except Turkish, which also spits out something related to subtitles...
shazar
·il y a 3 ans·discuss
Just tried a few languages and there seems to be a problem with German speech to text. When I say "Hallo" it just thinks I said "Untertitel der Amara.org-Community" :-)

English and Spanish seemed to be functioning OK though, but I really wanted to test my German.
shazar
·il y a 3 ans·discuss
Unrelated to the article, but hijacking the history and making it impossible to navigate back is the new cancer in the internet I guess.
shazar
·il y a 3 ans·discuss
Congrats on the launch!

Was it an intention to make the design similar to https://gumroad.com/? Or am I the only one seeing an uncanny resemblance?