(919) 964-9842
(919) 964-9842

Currently browsing Development

Hackerrank in PHP: Counting Valleys

Posted on by Christina Gleason
Categories: Development

We need to count how many valleys our dear friend Gary is going through. He's a hiker and he wants to count how many valleys will be on his hike. To do this, we've been given an array with his steps, whether he is going down or up (indicated by D or U respectively). We've […]

Read More »

Hackerrank in PHP: Sock Merchant

Posted on by Christina Gleason
Categories: Development

I am terrible at coding tests, and trying my best to get better at them. This was technically an "easy" one and it took me 45 minutes! But I got it done after much struggling on the struggle bus. Long story short, John is working at a sock store and is desperately trying to determine […]

Read More »

Docker PHPMyAdmin Upload Max File Size

Posted on by Christina Gleason
Categories: Development

I found several articles regarding upping the upload_max_filesize and post_max_size for PHP for PHPMyAdmin, but I don't believe they consider the phpmyadmin Docker image. Since this is separate from the WordPress image that I use, it doesn't utilize the same php.ini file that we're using to adjust these numbers. It's a pretty straightforward fix and […]

Read More »

Hackerrank with PHP: Arrays Left Rotation

Posted on by Christina Gleason
Categories: Development

Got another simple Hackerrank solution! This is one of the first challenges in the arrays section dealing with left rotation. Here's the problem description: A left rotation operation on an array shifts each of the array's elements 1 unit to the left. For example, if 2 left rotations are performed on array [1,2,3,4,5], then the […]

Read More »

Hackerrank with PHP: 2D Array - DS

Posted on by Christina Gleason
Categories: Development

I've been doing coding challenges on Hackerrank after not doing so great on a code test. They definitely get you thinking outside the normal, everyday work situations I face during my full-time job. As I find solutions, I am posting them here in case someone else is stuck. I code primarily in PHP, so that's […]

Read More »