— Find all sets in the powerset whose members sum to the largest — The last challenge in the Grelin Code Challenge asks to create a script that finds all subsets of an array where the largest number is the sum of the remaining numbers. For example, if we input (1, 2, 3, 4,... Read more
Hi, I'm VanessaSaurus, a Software Engineer.
Building tools, containers, and cloudy things, with a penchant for Python and parsnips. -- about me
Raaawwr..!
— Find all the unique prime factors of a number, and sum them — Here is part two of the coding challenge: to write a script that takes an input number, and finds the sum of all of the unique prime factors of that number. My script is by no means elegant, but it... Read more
— Find the smallest prime greater than an input number — that is also in the Fibonacci Sequence! For this one I left in all my print lines that were used for debugging / testing purposes. This script takes in a number, and finds the smallest prime that is greater than... Read more
— Find the Longest Reversed Substring in a String — This function takes in a string, “stringy,” and finds the longest reversed substring (palindrome) in the larger string. So, racecar would be an example because it is the same thing backwards and forwards! I basically did it by identifying all... Read more