DEV Community

Cover image for Bit, Bit Manipulation and Bitwise Operations — Codility
Ijeoma Oguegbu
Ijeoma Oguegbu

Posted on

2

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.

AWS Q Developer image

Your AI Code Assistant

Ask anything about your entire project, code and get answers and even architecture diagrams. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Start free in your IDE

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay