coderz.py

Keep Coding Keep Cheering!

Problems based on bit manipulation

In the previous topic, we got an introduction to Bit Manipulation in DSA. Let us now look at some examples using bit manipulation. Given two integers x and y, return the Hamming distance between them: Note: The Hamming distance between two integers is defined as the number of points where the corresponding bits differ. i.e, Input: x = 1, y = […]

April 18, 2023 | Data Structure | No comments

Operators in C++

An operator is a symbol that instructs the compiler to perform particular mathematical or logical operations. C++ has a wide range of built-in operators, including the following: Types of operators: Arithmetic Operators Relational Operators Logical Operators Bitwise Operators Assignment Operator Unary operator Ternary or Conditional Operator Misc Operator Arithmetic Operators: These operators are used on […]

September 24, 2022 | C++ | No comments

Advertisement