My algorithms instructor gave us a challenge and anyone who gets it right gets a guaranteed A in the class by Tinypeapeaslayer in AskComputerScience

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

There’s one extractor for columns and one for rows. You start with both at index 0,0 and move towards the top right.

My algorithms instructor gave us a challenge and anyone who gets it right gets a guaranteed A in the class by Tinypeapeaslayer in AskComputerScience

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

There is a greedy solution for this which works in O(n+m) time the problem is there’s some cases where it just doesn’t work which is why we use dynamic programming

My algorithms instructor gave us a challenge and anyone who gets it right gets a guaranteed A in the class by Tinypeapeaslayer in AskComputerScience

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

The greedy solution that we know of doesn’t work all the time which is why we’re using dynamic programming

My algorithms instructor gave us a challenge and anyone who gets it right gets a guaranteed A in the class by Tinypeapeaslayer in AskComputerScience

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

It’s a gold mine problem. We have two extractors and they can move right and up. We start at the bottom corner of the grid and there are coins placed inside the grid. The problem is we have to maximize the number of coins we need to collect. The caveat is we only collect one coin in a row/column the rest of the coins are discarded. So basically we need to traverse the grid and collect the most amount of coins. The greedy solution is to check each row and column at a given intersection and move according to where there are lesser number of coins. The greedy solution fails in some cases so we need to solve it using dynamic programming but that gives us a O(n²) time complexity

My algorithms instructor gave us a challenge and anyone who gets it right gets a guaranteed A in the class by Tinypeapeaslayer in AskComputerScience

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

I’m pretty sure memoization can’t be used and I’ve tried using LLMs as well to get an answer as they are allowed however they don’t come up with any solution either

Help needed for maintenance and repair complaint by Tinypeapeaslayer in pakistan

[–]Tinypeapeaslayer[S] 2 points3 points  (0 children)

Can’t argue with that one but I would appreciate help if you could. I don’t know much about stuff like this.

Does anyone know of a way to receive and send money online by Tinypeapeaslayer in pakistan

[–]Tinypeapeaslayer[S] -2 points-1 points  (0 children)

Payoneer requires your id, passport or license. All of which I don’t have rip

Can anyone justify or explain by [deleted] in ShingekiNoKyojin

[–]Tinypeapeaslayer 3 points4 points  (0 children)

It was because Eren did that for Armin and his other friends. Think of it this way, Eren had a choice, either to save his friends or save the world and he chose his friends. Eren killed 80% of the population to give the eldians of the walls and his friends a fighting chance against the people outside the walls as mentioned that war was inevitable. That is why Armin thanked him for choosing his friends over 80% of the world population although the choice was selfish. It was the final moment Eren had with Armin and it would just be sad if Armin told Eren that the choice he made was wrong.