Skip to content

Blog

Production error deep-dives — root cause, reproduction, and the fix that holds.

Members only

Solution Review: Power of 2

Solution review for the Power of 2 challenge: solve it using Brian Kernighan's algorithm, optimized to O(1) time and space, with a step-by-step explanation.

Members only

Solution Review: Check If a Given Number is Even/Odd

This is a solution to another Bitwise question. Think of the rightmost bit of a number and think of some logic that could solve this. We solve using AND operator with O(1) time Complexity.

Members only

Solution Review: Count Set Bits Or Number of 1 bit's

We saw an algorithm to solve this problem in the previous lesson. Let’s see how to solve this more efficiently using Briann’s Algorithm. This is a faster execution than the previous naive approach.

A Complete Guide To JavaScript LocalStorage

localStorage is a property of the window object in JavaScript that allows you to store key/value pairs in a web browser. The data stored in localStorage persist even after the browser is closed, making it a useful tool for saving user data on the client side.

A Complete Guide To JavaScript LocalStorage

Is Java "pass-by-reference" or "pass-by-value"?

Java uses pass-by-value for all parameters, including both primitive data types and objects, which affects how methods behave and how they should be written.

Members only

How to reverse the letters in a string in Java

Learn various ways to reverse the letters in a string in Java, with an algorithmic approach, a flow chart and step-by-step code you can follow and run.

Reverse String
Members only

Bitwise OR, Computations, and Examples

Learn the bitwise OR operation: how it takes two bit patterns of equal length and performs a logical inclusive OR on each pair, with worked computations.

Members only

Number Of Flips Required To Make a|b Equal to c

We need to write a program with minimum flips to make the two bits’ OR operation equal a number. If you understand the OR operations clearly, this problem will be a good challenge for your skills.

Members only

Introduction to NOT Operator

Learn the bitwise NOT operator: how it flips each bit in the binary representation of a single input, with clear examples of what it does to a value.

Members only

Bitwise NOT, Computations, and Examples

Bitwise NOT, takes the input number, considers its binary representation, and inverts every bit, which means the 0 bit becomes 1, and the 1 bit becomes 0.