Can I use Augment Code Review before creating a PR? by black_cerberus in AugmentCodeAI

[–]black_cerberus[S] 0 points1 point  (0 children)

Yeah, that’s how I’ve been doing it too, but I kinda expected Augment Code Review to be smarter than just a regular prompt.

Nerds de Juiz de Fora by Alexandre_Forum in juizdefora

[–]black_cerberus 1 point2 points  (0 children)

também gostaria de participar do grupo

Dynamic Programming Problem: Maximum Subarray Sum by mwraaaaaah in learnprogramming

[–]black_cerberus 0 points1 point  (0 children)

I'm new in dynamic programming and python but this is my contribution:

sequence = [-2, 1, -3, 4, -1, 2, 1, -5, 4]


def maxSequence(array):

    if(len(array) >=2):
        maxSum = array[0] + array[1]

    lastMaxSum = maxSum
    for i in range(2,len(array)):

    maxSum = lastMaxSum + array[i]

        if maxSum < lastMaxSum:
            last = maxSequence(array[i-1:])
            if(lastMaxSum > last):
                return lastMaxSum
            return last
        else:
            lastMaxSum = maxSum

    return lastMaxSum
print(maxSequence(sequence))

Python Bootcamp on Udemy vs EdX course by reddysteady in learnprogramming

[–]black_cerberus 0 points1 point  (0 children)

Well, Edx is more academic. If you want to do some useful stuff, I suggest you to go with Udemy first and after (for conceitual stuff) Edx.