Tapan Rachchhtapanrachchh.hashnode.dev·Jan 15, 20252429. Minimize XORclass Solution: def minimizeXor(self, num1: int, num2: int) -> int: bits1 = bin(num1).count('1') bits2 = bin(num2).count('1') if bits2 < bits1: check = "1" replaceWith = "0" else: ...leetcode
Mohamed Ghazalimghazali.hashnode.dev·Dec 26, 2024Taariikhda iyo Aasaaska Fahamka Kombiyuutarka ee Nidaamka Binary iyo ASCIIMarki ugu horeysay ee lasoo saaray kombiyuutarka waxa uu fahmi jiray tiro keliya(numerical data). Waxay kombiyuutaradu isticmaali jireen ama wax ku fahmi jireen nidaamka (0 iyo 1), waxaana loo yaqiinay Binary(0 ama 1). Kombiyuutarka wax aan 0 iyo 1 a...binary
Manoj Thapaitsmanojthapa.hashnode.dev·Nov 17, 2024How to Install Node.js 14 on Mac Silicon SeriesIf you’re trying to install Node.js 14 using nvm on your macOS M-series computer and facing difficulties, you’re not alone. The reason is that Node.js 14 does not have an official ARM64 binary available, unlike Node.js 16 and later versions that supp...#rosetta
Tapan Rachchhtapanrachchh.hashnode.dev·Nov 7, 20242275. Largest Combination With Bitwise AND Greater Than ZeroWay 1 - Using bit matrix class Solution: def largestCombination(self, candidates: List[int]) -> int: maxBits = max(candidates).bit_length() binaryRepresentations = [[int(x) for x in format(number, f'0{maxBits}b')] for number in c...leetcode
Rohit Gawanderohit253.hashnode.dev·Oct 5, 2024Chapter 8: Operators, Conditionals, and Switch Case in JavaJava offers a wide variety of operators, which allow you to perform operations on variables, manipulate data, and control program flow. We will explore different types of operators and understand their behavior. 1. Operators in Java: Operators are sp...Full Stack Java Developmentuninary
Aakashi Jaiswalaakashi.hashnode.dev·Sep 28, 2024The Fascinating Evolution of CodingThe Origins and Evolution of Coding Coding, also known as computer programming, the process of creating sequences of instructions that computers can follow to perform specific tasks. The history of coding is deeply connected with the development of c...1 likecoding
Vishesh Guptavisheshg.hashnode.dev·Sep 24, 2024CS50 Fall 2024 - Lecture 0 - Scratch | SummaryHow Computers Handle Text, Colors, Images, Videos, and Sound In this lecture, we explored the things from fundamentals including how computers handle various types of data, including text, colors, images, videos, and sound and many more things. Here’...1 likedavid malan
Joseph Hjbrosdev.hashnode.dev·Sep 14, 2024Making A Virtual Machine - Binary to Assembly to C - All in RustIntroduction Why? This project has really shown me how a computer works at a binary level. It turned a computer from a magical box to an electrical circuit that you can study and learn how it works. I was researching stuff for this project and I came...53 readsinstruction set architecture
Ifeanyi Stanley .S.stanlee021.hashnode.dev·Aug 27, 202432-bit vs 64-bit: What You Need to KnowWhen dealing with computer systems, you often encounter the terms "64-bit" and "32-bit." These terms refer to the way a computer's processor (CPU) handles information. The distinction between 64-bit and 32-bit affects everything from performance to s...1 likebinary
Elijah Browndevsdaddy.hashnode.dev·Aug 25, 2024Developing a custom binary protocol for Node.js and WebSockets based applications with authorization via JWTIntroduction Developing efficient and secure applications requires not only a well-thought-out API, but also the right choice of data transfer protocol. Web applications usually use text-based formats such as JSON or XML, but for high-performance sys...10 likesText TutorialsNode.js