Akash Dasakashdas7781.hashnode.dev·Sep 17, 2024Mastering Bit-Manipulation : A Beginner to expert guide with simple ExamplesBit Manipulation is one of the most efficient way to optimize your code . Whether you are working with algorithms ,Cryptography or System level programming ,understanding of bit-manipulation can give you a significant performance boost .In this guide...Discussbinary bits
Sandhya Kondmarekloudsan.hashnode.dev·Aug 8, 2024Bitwise vs Logical Operators in Python: An Easy ExplanationIntroduction Python programming mein operators ek important role play karte hain. Yeh operators data ko manipulate karne ke liye use kiye jaate hain. Python mein mukhya do tarah ke operators hain: Bitwise Operators aur Logical Operators. Is blog post...DiscussBoolean vs Non-Boolean
ANSHbitmanipulation.hashnode.dev·Aug 4, 2024Bit Manipulation: CORE CONCEPTSBit manipulation is a technique that involves directly manipulating the individual bits of a number. It's often used to optimize algorithms and solve problems efficiently. BITWISE OPERATORS Observations of XOR : a ^ 1 = ā (compliment of a) a ^ 0...Discuss·10 likesbit-manipulation
Filip Melkafilipmelka.hashnode.dev·Jul 11, 2024Solving a Code Wars Challenge with the Reduce Method and a Bitwise OperatorWhile solving problems on Code Wars, I came across an interesting problem called Find the Odd Int. It seemed simple at first, but one particular solution fascinated me so much that I decided to write about it. The problem Here's what the problem asks...DiscussCodewars
Mahbub Alam Masumblog.masum.dev·Jun 24, 2024How to Find the Element that Appears Once in an ArrayFinding the element that appears only once in an array where all other elements appear twice is a common problem in coding interviews and programming challenges. In this article, we'll discuss four approaches to solve this problem: one using a brute ...Discuss·28 readsArrayDSA
Tapan Rachchhtapanrachchh.hashnode.dev·May 30, 20241442. Count Triplets That Can Form Two Arrays of Equal XORclass Solution: def countTriplets(self, arr: List[int]) -> int: ans = 0 l = len(arr) cache = {} for i in range(0, l - 1): for j in range(i + 1, l): for k in range(j, l): ...DiscussPython
Jinali Ghogharijinali.hashnode.dev·Mar 13, 2024Dart Bitwise & Shift OperatorsDart provides powerful tools for manipulating binary data at the bit level through bitwise and shift operators. Bitwise Operators Operator signOperator Name &AND ^XOR ~Bitwise NOT Shift Operators Operator signOperator NameOperator Desc...DiscussDartshift right
Ashutosh Kumar (Ashu)forDSA by @ashusnapxdsa-ashusnapx.hashnode.dev·Feb 19, 2024WTF is bitwise ✨$$$$ \begin{array}{|c|c|c|c|} \hline 2^x & \text{Value} & \text{Binary Form} & \text{Shift} \\ \hline 2^0 & 1 & 0001 & 1 \ll 0 \\ 2^1 & 2 & 0010 & 1 \ll 1 \\ 2^2 & 4 & 0100 & 1 \ll 2 \\ 2^3 & 8 & 1000 & 1 \ll 3 \\ 2^4 & 16 & 0001 0000 & 1 \ll 4 \\ 2^...Discussbitwise operators
Voidbooksvoidbooks.hashnode.dev·Feb 16, 2024Our first publication: Byte Magic In SwiftUnlock the secrets of bitwise operators and elevate your Swift programming skills with "Byte Magic In Swift". This book takes you on an exhilarating journey, starting with the fundamentals and advancing to practical and advanced applications of bitwi...Discuss·37 readsiOS
Jyotiprakash Mishrablog.jyotiprakash.org·Dec 24, 2023Let's take it bitwise!Here's a detailed code sample illustrating the use of bitwise operators in C with explanations and output: #include <stdio.h> void displayBinary(int num) { // Display the binary representation of a number for (int i = sizeof(int) * 8 - 1; i ...Discuss·69 readsC Programmingbitwise operators