My last blog I discussed arrays and Linked List, the pros and the cons. Linked Link are a data structure and have a very specific way that they are written, they use the class keyword. The Linked List contains a head, tail and length property. It also contains nodes which are a value and pointer to another node or null. Linked List do not have indexes so random access isn’t allowed!

Node set up

First we define the Node class then the constructor which takes in a value. A constructor is a special function of the class that is responsible for initializing the…


I’ve finally worked up the courage to dive into data structures, interestingly I find data structures to be slightly less terrifying than algorithms. I’ve been doing some LeetCode and I am absolutely starting with all easy questions but recently I got a question that required the solution to be solved using a data structure, I was not ready. If you’ve been reading my blogs you know that I attended the Flatiron School’s immersive software engineering program. In bootcamps you’re only taught how to build applications on the fly, not solve complex algorithms and solve it using the best solution that…


I haven’t really written too much about programming on the backend, mostly because I prefer frontend programming. Recently I’ve started working on my mobile app Plantbae again and I am working on adding more features and then deploying it to the app for everyone to use. When I first started working on the app as my final project, I was in a position where I didn’t have to consider whether my app was scaleable. In bootcamp I was taught Ruby followed by Ruby on Rails and although I really enjoyed Rails and it made a lot of things easier but…


Hello all ! I am still taking a slow walk through algorithms before understanding algos and really breaking down code, whenever I needed to iterate over an array or an object I usually went with a method that I’ve used before. Of course I learned about filter() and reduce() but I learned a whole bunch of other things too! I very quick realized I forgot a lot of the fundamentals of Javascript & working through algos understanding the fundamentals is key!

filter() :

The filter() method creates a new array of elements that pass the conditional provided. In other words…


Hello again ! My last couple of blogs have been about algorithms and what I’ve learned working with algorithms is how important it is to understand the fundamentals of a programming language. Often times when I look at solutions and it make sense to me but I also like to go over what each syntax does literally. Last week while going through technical questions that are asked during interviews, on of them was what is the difference between the forEach and map methods. I’ve used map more often than forEach but I’ve used it but thinking about the question I…


Hello again ! Since diving into algorithms I’ve done several that involved searching for something specific or returning something. Last week though I came across an algorithm in which you would write a function that accepts a positive number. The function should console log a sequence in the pattern of steps with n levels using the # symbol. Make sure the step has spaces on the right hand side.

this is the expected output when n = 5.

As I do with all problems, I restate it in my own words to make sure I understand what is expected of me. I think about what is the input, but…


Hello again ! I’ve been doing algo for the last month and I’m actually getting better finally but as I get into more difficult I realized I needed to really brush up on my fundamentals of JS. Closures is one of those fundamentals but when I looked into, I didn’t see how it was different than declaring a global variable. When using global variables you are able to access that variable anywhere.

In my short time of programming, I’ve only ever used global variables because that’s what I was taught. For my small applications and code challenges, using global variables…


As I continue my learning through algorithms, I start to recognize how some solutions are better for certain problems. Recently I was working my way through Codewars.com and came across this problem.

When I first read it, I thought this should be easy enough. Since there are several different test cases, I would have to pass in an argument to the function. I began to think okay but how do I even split up the numbers to insert parentheses and dashes? I gave myself about 10 mins before I gave up because I really had no idea. I went to…


Up until this point I’ve spent about 2 weeks understanding and trying to solidify searching algorithms. Before ever diving into algos, I thought throwing .sort()on the end of an array was enough. Little did I know, it doesn’t always work the way you would expect. I am working on being really patient with myself for not knowing everything so I took a deeper look into the .sort() method. Reading up on it made realize, that I often forget when I’m coding, I’m writing in a way that a computer can understand what I’m trying to do. Writing code is so…


As I am diving into the world of algorithms, I’m realizing I shouldn’t be so afraid of them. One of the biggest reasons I hate algorithms was not even being able to understand the question that is being asked. Problems are worded in a such a way that even understanding what I’m being asked to do doesn’t make sense. For example, “Find the k largest number in an unsorted array.”

First of all…who is k and why do they need the largest number?

After some googling I discovered this question is basically asking, given an array [2,4,6,1,24,33,40,12,16], you are being…

Dolly Desir

The sassy developer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store