Data Structures and Algorithms

Implement an algorithm with linear time and constant space complexity

LeetCode Problem

Thought Process

There are a few things to pay attention to.

Due to the required O(1) space complexity, we can’t create a new array or a Set. We have to implement an in-place algorithm by modifying the input array.

The first thing you might think to use is Array.prototype.splice. While it’s a…

Binance Smart Chain

Take advantage of collateral loans to maximize earnings.

Collateral loans are prevalent among DeFi projects, and there is a reason for that. Who wouldn’t like to take a loan to make more money while earning interest on collateral? It’s an absolutely fantastic way to maximize earnings in good hands.

I want to introduce you to Venus Protocol. First…

No need to be cheap or frugal. Spend mindfully to change your life for the better.

I was an avid spender. Saving money or thinking about tomorrow was never in my book. It was all about doing whatever I want and enjoying life. At least that’s what I thought at those times.

At some point, I’ve realized that I’ve been working for years, earning good, and…

Get the benefit of types to manage your routes like a champ

A woman walking on a stone path. There’s a stairway to her right.

Over the last year, I’ve had a chance to work on many React projects with TypeScript — some of them from scratch, while others dealt with maintenance or adding new features. Whether they were simple or complicated, they all involved some kind of routing.

As a result, I had a…

Emre Yilmaz 🌕

Software Engineer 💻 #DeFi addict 💸 I have no idea what I’m doing 🐸 Always #DYOR 📈 https://github.com/emreloper

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