Error converting content: marked is not a function
- #practice/Reading📖 Books/A Man Thinketh - Impure thoughts of every kind crystallize into enervating and confusing habits, which solidify into distracting and adverse circumstances. - Pure thoughts crystallize into habits of temperance and self-control, which solidify into circumstances of repose and peace. - My call to action is Pure Thoughts - Stay Poised - Taking the pain. Yes. Conscious light 59 Psychic Noise. Not gonna let out #crankiness - “It’s amazing how you try 10 things and you find the three coolest pieces, and you put them together, it feels like a lot more than three things. It kind of multiplies out in complexity and detail and it feels like it has depth, even though it doesn’t seem like a lot. And so yeah, there’s something magic about finding three cool things and then starting to build a product out of that.” #RenovateAI App - P/Algorithms Day 82. Encouraging - Algo/Max Sum Increasing Subsequence ✅ collapsed:: true - coded the last sequence generation part in 15 mins. - This fucking problem was hard man. It's **20 lines of code that has an entire computer science degree** in it sort of.. wow. Go #Algorithims - ```python def maxSumIncreasingSubsequence(array): # Write your code here. sums = [num for num in array] seq = [None for x in array] maxSumIdx = -1 for i in range(len(array)): for j in reversed(range(0, i)): if array[j] < array[i] and array[i] + sums[j] > sums[i]: sums[i] = array[i] + sums[j] seq[i] = j if sums[i] > sums[maxSumIdx]: maxSumIdx = i # generate list seqList = [] nextIdx = maxSumIdx while nextIdx is not None: seqList.append(array[nextIdx]) nextIdx = seq[nextIdx] return [sums[maxSumIdx], list(reversed(seqList))]; return [maxSum, list(reversed(seqList))]; ``` - Algo/Longest Common Subsequence - Solid persistance. Got nice code that works if characters are unique. Close. Happy that I got something working that passes 7 out of 10 test cases. - - #saie and people have confined world view. So do I. I just assume all have open world view all the time.