This has been my first online contest in LeetCode — and it was a blast!
We are given
coordinates, a string that represents the coordinates of a square of the chessboard, and asked to return
true if the square is white, and
false if the square is black.
Even if you feel well prepared for your next interview after solving well over 5o questions on LeetCode on backtracking, dynamic programming, design, and graphs — this question is about to surprise you 😀
This post will add a new solving method for your toolbox, so first we shall start with a 1-dimensional version of the question and then continue with the 2-dimensional method, and finally, the inventor of this ingenious data-structure shares with us the background and motivation for this creative idea.
Our problem is LeetCode #307; given a numbers array we shall support three operations: initialization, updating a…
Over the years talented computer scientists devised tree data structures that boosted real-life applications. Those ingenious data-structures and their efficient performance allowed simple solutions for complex problems in various domains; from image representation, and multi-dimensional data, through intervals aggregation, to databases and file-systems.
This article is a concise glossary, that you can use to broaden your knowledge and use whenever you stumble upon an applicable problem from these domains. For each of the tree data-structures you will find; how they are applicable, the complexities of the allowed operations, as well as tutorials and links for further information.
This challenge has been introduced by Elbit in 2021 and involved decoding a file with an invented ElbitLang format.
In this post, I share with you the detailed solution.
We are given a decoded file and asked to send back the output as a solution proof.
So let’s open it with a HEX reader to view its content:
Python is an elegant programming language that (usually😉) lets you focus on logic instead of a missed semicolon; From time to time I encounter some useful library that can make your coding even easier, here are the first 5 🙂
Everyone who used
itertools must have fallen in love with this great library, …but what if I tell you there is more?
More Itertools would make your code even more elegant and clean, here are just a few examples:
## If using map & reduce sperately is exciting, how about combining them to MapReduce;
keyfunc = lambda x: x.upper()
result = map_reduce('abbccc'…
This challenge has been introduced by Elbit in 2020 and involved two riddles, of encrypted messages.
In this post, I share with you their detailed solution.
This challenge has been introduced in Israel to recruit to eBay R&D center and required understandings in engineering, coding, some forensics, and other technical know-how — so I found it really interesting and diverse.
It has been around 2 AM that riddle prompt post popped on my Facebook, one day after it has been introduced, I felt that chances are low — as many before me have tried- but I couldn't resist solving it. …
It’s 13:37 and you’re coding for fun as you do every day, without any further notice an error occurs (nobody is perfect) — you Google it.
This has been a usual day, but something strange is happening… the results screen starts to slide and a mysterious message appears.
“Curious developers are known to seek interesting problems. Solve one from Google?”
There are two possible future consequences, you may close it and never see it again — but if you do click it, one of the best coding challenges and mind-intriguing journeys will start!
You’re now part of the secret…
Message Queues play an important role in large-scale solutions, as the project becomes more and more sophisticated — micro-services are added and we become dependant of the message-queue functionality.
One day we wake up and discover that current message-queue implementation doesn't meet our changing needs, we change it — and we fall into the endless refactor and regression tests loop.
So can we devise a framework that allows us to change the implementation without affecting the whole project?
In this story, I describe the prediction method I've developed during the Big-Data course I took at Tel-Aviv University, as an Economics student.
I’ve received a dataset of 4.5 million Uber rides orders in New-York City, which connects drivers and those who are interested in a ride.
The dataset contained observations from months April-July 2014 and included locations and time of order.
Based on the dataset, I’ve been asked to predict the number of orders in a future month, September 2014, on each 15-minutes interval.
First, I’ll describe the research on the data to find patterns and connections, then based…
Software Engineer 🖥️ Economist 📈 Beer Brewer 🍻 Photographer 📷 ~ “Curiosity is my drug”