DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 966,904 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
Cover image for Bit, Bit Manipulation and Bitwise Operations β€” Codility
Ijeoma Oguegbu
Ijeoma Oguegbu

Posted on

Bit, Bit Manipulation and Bitwise Operations β€” Codility

Preparing for an interview led me to my first Codility test. In preparation for the test, I had to refresh my knowledge of data structures and algorithms. The first lesson on Codility discusses Iterations and the first exercise, classified as β€œpainless” (really), is a question to find the longest Binary Gap in a positive integer.

The first attempt, I got a 66% score, which to me is poor, and also my algorithm failed some of the other tests, shown later in the final results. In conclusion, this test kicked my ass, and it was supposed to be β€˜easy’.

Like any curious programmer, I snapped out of it and decided to start publishing my thought-process through my attempts at making sense of data structures, algorithms, and basically all things programming. The result was phenomenal.

Alt Text

Read about all of it on Medium.

Top comments (0)

🌚 Friends don't let friends browse without dark mode.

Sorry, it's true.