![]() ![]() ![]() It wastes a few cycles checking non-prime factors, but the code isn't too different. You can do the same thing just increasing by 1 each loop. You don't really need the hardcoded primes. Now I suppose I can move on to automating the rest of the game's mechanics. It seems I was closer than I thought for the stock trading, I had heard about memoization but wasn't sure how exactly I could apply it to the problem, I'll look into it further.Įdit2: Alright, with that help on the primes and dynamic programming I was able to solve all except one, I did need to take a look at someone else's solution for the valid math expressions (my method of evaluating the string's value was way too slow for recursion but it otherwise worked). I'll be a bit more liberal with examining solutions from now and I'll take a look at the discord. Seems I was close for the largest prime factor problem but got tangled somewhere between KlePu's solution except I tried to calculate the primes in the program, and Vorthod's solution except I somehow forgot I can check divisibility with modulus. I'm also unfamiliar with reddit so I hope that I formatted my post readably. I feel I would learn something by looking at someone else's solution to these but then I'm unsure where the line is between learning/applying and just copying which might rob me of the opportunity to improve my own skill. Using the latest technology, Matrix provides salon quality products that stylists and their clients can depend on. Total Ways to Sum 1 (I know this needs something from partitions)Īlgorithmic Stock Trader 3&4 (I can technically do 3 but it's unusably slow) I started writing down my thoughts for some of the following until I concluded these are outside my current understanding: I mainly want to know where I can go or what I can do to build the skills needed to solve these on my own. For the majority of the contracts I've attempted however I've instead had back and forth reasoning in my head for several days with no progress and many restarts. ![]() Recently I've hit a bit of a wall regarding the contracts, a few I can do easily enough such as the "Spiralize Matrix" contract, others I can at least get down a really complex and slow solution. Since then I've remade all the example scripts in my own way and I've been proceeding well enough. When I started playing Bitburner I wasn't very experienced in writing code, it took a leap to go from Netscript 1 to 2 when I was finally fed up with the slow speed. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |