---
title: "Discussion on \"Approaching Problems like a Software Engineer\" | Hashnode"
description: "Discussion on \"Approaching Problems like a Software Engineer\". During a recent, mock technical interview, I was given the following problem to solve.\n\nWrite a function that takes in two inputs, an array, and a number. Remove the first item in the array. Then, move it to the last place in the array. Repeat this t..."
url: "https://hashnode.com/posts/approaching-problems-like-a-software-engineer/5f2f4cd43b12e25afe3e519a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Approaching Problems like a Software Engineer](https://shannoncrabill.hashnode.dev/approaching-problems-like-a-software-engineer?utm_source=hashnode&utm_medium=feed)

During a recent, mock technical interview, I was given the following problem to solve. Write a function that takes in two inputs, an array, and a number. Remove the first item in the array. Then, move it to the last place in the array. Repeat this t...

Aug 9, 2020 · 6 min read · shannoncrabill.hashnode.dev  
Updated Aug 15, 2020  
Read the article

-   [#2articles1week](https://hashnode.com/tag/2articles1week)
-   [#software-engineering](https://hashnode.com/tag/software-engineering)
-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[Shannon Crabill](https://hashnode.com/@shannoncrabill)

@shannoncrabill · Baltimore, MD

  
[View profile](https://hashnode.com/@shannoncrabill)

Full Stack Software Engineer

## Responses 2

Markdown supported · ⌘↵ to post

[Edidiong Asikpo (Didi)](https://hashnode.com/@didicodes)

[Aug 9, 2020](https://hashnode.com/posts/approaching-problems-like-a-software-engineer/5f2f4cd43b12e25afe3e519a/comment/5f302bee0c616c74e11bc571)

Amazing explanation [Shannon Crabill](https://hashnode.com/@shannoncrabill). Prior to some months ago, I hated algorithms because I used to ignore trying to understand the problem first before jumping into solving the problem immediately.

Your article is definitely an indication that I am on the right track now. Thanks for sharing this.

[Shannon Crabill](https://hashnode.com/@shannoncrabill)

[Aug 10, 2020](https://hashnode.com/posts/approaching-problems-like-a-software-engineer/5f2f4cd43b12e25afe3e519a/comment/5f302bee0c616c74e11bc571#reply-5f31b1634332ee07eb55bff5)

I agree that algorithms can be scary. I've avoided learning them too, but recently took a deep dive. It's less scary the more you learn about and try to understand them.

[Edidiong Asikpo (Didi)](https://hashnode.com/@didicodes)

[Aug 11, 2020](https://hashnode.com/posts/approaching-problems-like-a-software-engineer/5f2f4cd43b12e25afe3e519a/comment/5f302bee0c616c74e11bc571#reply-5f3240752a23d9080d17958d)

[Shannon Crabill](https://hashnode.com/@shannoncrabill) I totally agree.

[Umar Adam](https://hashnode.com/@mash)

[Aug 9, 2020](https://hashnode.com/posts/approaching-problems-like-a-software-engineer/5f2f4cd43b12e25afe3e519a/comment/5f2f55e0b8ac395b1f23aaea)

Your first solution was the only thing in my head, till I saw the patterns..

Nice write up by the way..

[Shannon Crabill](https://hashnode.com/@shannoncrabill)

[Aug 9, 2020](https://hashnode.com/posts/approaching-problems-like-a-software-engineer/5f2f4cd43b12e25afe3e519a/comment/5f2f55e0b8ac395b1f23aaea#reply-5f2f623b3b12e25afe3e51c0)

Same for me when I first had this problem. My reviewer pointed it out as something to think about, which had me go "OH".

Being self-taught, learning after work, etc, it's easy to get caught up on passing a test or challenge and not thinking deeper about what is happening and how to improve on it.
