Resources  
  • Binary Searchable Count Count Binary Searchable Elements in an Unsorted ArrayJun 10, 2026. Discover which elements are discoverable via binary search on unsorted arrays. Learn the O(n) algorithm and its O(log n) space complexity.
  • Find the Kth Smallest Element in a Sorted Matrix Using Binary Search on AnswerJun 08, 2026. A matrix search problem solved efficiently using binary search on value range and counting elements less than or equal to mid in O(n) time per step.
  • Count Elements Within a Range Using Sorting and Binary SearchJun 06, 2026. Learn how to efficiently count array elements within given ranges using sorting and binary search. Includes intuition, lower bound and upper bound concepts, complexity analysis, and Java solution.
  • Count Elements in a Given Range Using Sorting and Binary SearchJun 06, 2026. This problem involves finding the number of elements in an unsorted array that lie within a given range [a, b] for multiple queries. A naive approach would check each element for every query, resulting in high time complexity. A more efficient solution uses sorting and binary search: Sort the array to enable fast searching. For each query [a, b]: Use a lower bound search to find the first element = a. Use an upper bound search to find the first element > b. The difference between these indices gives the count of elements in the range. This approach significantly reduces time complexity to O(n log n + q log n) while keeping space usage minimal. It’s a classic example of combining sorting with binary search to handle range-based queries efficiently.
  • How to Implement a Binary Search Algorithm in C# With ExampleApr 03, 2026. Master Binary Search in C#! This guide covers iterative & recursive implementations with clear examples, optimization tips, and real-world applications. Boost your search efficiency!
  • Find Number of Rotations in a Sorted Array Using Binary Search in DSAJan 23, 2026. Discover how to efficiently find the number of rotations in a sorted array using binary search. Learn the logic, code implementation, and common pitfalls. Ace your DSA interview!
  • Single Element in a Sorted Array Using Binary SearchJan 23, 2026. Master binary search to find the single, unpaired element in a sorted array! Learn the logic, code, and common mistakes to ace your coding interviews. O(log n) efficiency.
  • Allocate Minimum Number of Pages Using Binary SearchJan 23, 2026. Master the "Allocate Minimum Number of Pages" problem using binary search! Learn to efficiently distribute books and minimize the maximum pages a student reads. A key DSA interview question!
  • Aggressive Cows Problem Using Binary SearchJan 23, 2026. Maximize cow spacing! Learn to solve the Aggressive Cows problem using binary search. A classic interview question explained with clear logic and C++ code.
  • First and Last Occurrence of an Element Using Binary SearchJan 21, 2026. Master binary search! Efficiently find the first and last positions of an element in a sorted array. Ace coding interviews with this essential algorithm. O(log n) speed!
  • Count Occurrences of an Element in a Sorted Array (Using Binary Search)Jan 21, 2026. Master counting element occurrences in sorted arrays efficiently using Binary Search! This guide provides a step-by-step approach, code examples, and avoids common mistakes. Ace your coding interviews!
  • Find Peak Element in an Array Using Binary SearchJan 21, 2026. Master the 'Find Peak Element' problem with binary search! This guide simplifies the logic, explains the algorithm, and provides a C++ code example. Ace your interview!
  • Search in a Rotated Sorted Array Using Binary SearchJan 21, 2026. Master searching rotated sorted arrays! This guide breaks down the binary search approach with clear explanations, code, and common mistakes to avoid. Ace your interview!
  • Lowest Common Ancestor in Binary Search Tree (BST)Jan 16, 2026. Master the Lowest Common Ancestor (LCA) problem in Binary Search Trees (BST)! Learn recursive & iterative solutions, edge cases, and complexity analysis.
  • Search in Rotated Sorted Array Using Binary SearchJan 08, 2026. Learn how to search an element in a rotated sorted array using Binary Search. This beginner-friendly DSA article explains the logic step by step with examples and clean code.
  • Program to Convert Decimal to Binary in C#Oct 29, 2025. Learn how to convert decimal numbers to binary in C# using a recursive function within an ASP.NET WebForms application. Includes code and examples! #csharp
  • Understanding Searching Algorithms: Linear Search and Binary SearchOct 14, 2025. Explore the fundamentals of searching algorithms with Linear and Binary Search. Learn how these algorithms efficiently locate elements within data structures. Discover their step-by-step logic, Python implementations, and time/space complexity. Understand when to use each algorithm based on data characteristics and performance needs. Master these essential techniques for efficient data retrieval in programming and real-world applications. Binary search is faster but requires sorted data.
  • Decode QR Codes from Binary Images Without Libraries Using PythonOct 10, 2025. Unlock offline QR code decoding with pure Python! This guide provides a step-by-step implementation to read QR codes from binary images without external libraries like OpenCV or PIL. Ideal for resource-constrained environments like rural clinics, learn to build resilient, dependency-free systems for vaccine verification and more.
  • How to Convert a Grayscale Image to Binary or Negative Image Using PythonOct 08, 2025. Learn how these fundamental operations enhance real-time vision systems, using a Singapore toll booth example. Optimize image processing for edge deployment with our zero-dependency code, boosting accuracy and reducing bandwidth. Perfect for OCR, object detection, and low-latency applications.
  • DSA Binary Search Tree (BST)Oct 03, 2025. Explore the Binary Search Tree (BST), a fundamental data structure in DSA, crucial for efficient searching, insertion, and deletion. Learn about its structure, basic operations (insert, search, delete), and different tree traversals (inorder, preorder, postorder). Understand time complexity and the importance of balanced BSTs like AVL and Red-Black trees to avoid worst-case O(n) scenarios.
  • What is a Balanced Binary Tree and How to Check it?Oct 01, 2025. Discover the power of Balanced Binary Trees! Learn what makes them crucial for efficient data management in computer science. This article explains balanced binary tree properties, why they're important for search and insertion speed, and provides a Python code example to check if a binary tree is balanced. Explore real-world applications in databases, networking, and compilers.
  • Lowest Common Ancestor in Binary Trees: Easy and Efficient MethodsAug 13, 2025. Learn how to find the Lowest Common Ancestor (LCA) in a binary tree using beginner-friendly explanations, step-by-step algorithms, and efficient Java code implementations.
  • Validate Binary Search Tree in DSA – Rules, Algorithms, and CodeAug 13, 2025. Learn how to validate whether a given binary tree is a valid Binary Search Tree (BST) using step-by-step logic, rules, iterative and recursive algorithms, and Java examples.
  • What is Binary Search Algorithm and How It Works with Examples.Aug 12, 2025. Understand the Binary Search algorithm in depth — how it works, step-by-step process, real-world use cases, and practical Java examples. Perfect for beginners and intermediate learners in Data Structures and Algorithms.
  • Decimal to Binary Conversion in C#Dec 26, 2024. Learn how to convert decimal to binary in C#. Understand decimal and binary numbers, explore examples, and implement a simple program. This guide is perfect for beginners and professionals preparing for interviews.
  • Efficiently Managing Data with Binary Tree Implementation in C#Dec 09, 2024. This article tells you how to implement and leverage binary trees in C# to optimize data storage and retrieval, ensuring your applications run smoothly and efficiently.
  • Understanding .NET Binary SerializationNov 19, 2024. .NET Binary Serialization simplifies the process of converting objects into binary formats for efficient storage or data transfer. This guide explores serialization techniques, the BinaryFormatter class, custom serialization, and best practices.
  • Delete the Element from the Binary Tree Using C#Sep 28, 2024. Learn how to efficiently delete an element from a binary tree using C#. This guide covers the complete process of node deletion, including leaf nodes, nodes with one or two children, and root node removal.
  • How to Show Direct Binary Image Using Handler in ASP.NET WebFormsAug 09, 2024. Learn how to display images stored as binary data in a database using an HTTP handler in ASP.NET WebForms. This guide covers creating a database table, a stored procedure for image retrieval, and implementing an HTTP handler to serve images dynamically. It also includes integrating the handler into a web form.
  • Understanding the Binary Search AlgorithmAug 06, 2024. Understanding the Binary Search Algorithm delves into the mechanics of binary search, a fundamental algorithm in computer science. This guide covers its implementation in both iterative and recursive forms, explains its logarithmic time complexity, and highlights its efficiency in searching sorted arrays.
  • Data Structures and Algorithms (DSA) using C# .NET Core — Binary Trees and Binary Tree Types IIJul 29, 2024. This article explores various types of binary trees, including Full, Perfect, Complete, Balanced, Skewed, and Degenerate Binary Trees. It explains their properties and distinctions, such as how Full and Perfect trees differ from Complete trees.
  • Data Structures and Algorithms (DSA) using C# .NET Core - Binary Trees and Binary Search Tree (BST) Tree Traversal- IIJan 02, 2024. The fundamentals of Tree and Binary Search Tree, delving into data reading, node addition, deletion, and search operations through tree traversal. Understand three traversal types: Preorder, Inorder, and Postorder. Source code included.
  • Data Structures and Algorithms (DSA) using C# .NET Core — Binary Trees and Binary Search Tree (BST) - INov 27, 2023. In this article we will learn about - Binary Trees. Explore the fundamentals of trees and delve into binary trees, focusing on Binary Search Trees (BST). Understand key terminologies, tree traversal, and mathematical formulas for node calculations in this comprehensive guide.
  • Implementing Binary Search in PythonAug 18, 2023. Binary search, a potent algorithm, efficiently locates items in a sorted collection. Unlike linear search, it drastically minimizes comparisons, making it ideal for large datasets. Explore the binary search principles and Python implementation. Learn how binary search divides the search range and translates this into Python code.
  • Calculate the Number of 1's in Binary RepresentationJul 13, 2023. Given an integer n, return an array ans of length n + 1 such that for each i (0 <= i <= n), ans[i] is the number of 1's in the binary representation of i. Example 1:Input: n = 2 Output: [0,1,1] Explanation: 0 --> 0 1 --> 1 2 --> 10 Example 2:Input: n = 5 Output: [0,1,1,2,1,2] Explanation: 0 --> 0 1 --> 1 2 --> 10 3 --> 11 4 --> 100 5 --> 101Constraints: 0 <= n <= 105
  • Minimum Depth of Binary TreeJun 20, 2023. Find Minimum Depth of Binary Tree
  • Check if Binary Tree is SymmetricJun 15, 2023. This code is a C# implementation of a solution to the problem of checking if a binary tree is symmetric or not. A binary tree is symmetric if it is a mirror image of itself along the center.
  • Essentials Of Serialization - Binary SerializationFeb 15, 2023. This article will help you to understand serialization and deserialization and use Binary serialization in practice
  • Enhance Integrated CI And CD In Azure Pipelines As Code With Key Utils - Binary Logger And Report GeneratorDec 04, 2019. In this article, you will learn how to enhance integrated CI and CD in Azure Pipelines as code with Key Utils - Binary Logger and Report Generator.
  • How To Do Binary Classification in ASP.Net Core Using ML.NetOct 30, 2019. In this article, we will see binary classification in ASP.Net Core using ML.Net.
  • C# 7.0 New Features - Binary Literal, Digit Separator And Local Function - Part OneJul 25, 2018. This Article explains the new features of C# 7.0 and it covers features like binary literal, digit separator and local function.
  • Uploading Downloading PDF Files In Binary Format Using FileResult In ASP.NET MVCSep 06, 2016. In this article, we will learn, how to upload files in binary format into database and download from database, using ASP.NET MVC.
  • Upload Files And Save Into Database In Binary Format Using ASP.NETJul 03, 2016. In this article, you will learn how to upload files and save into the database in binary format, using ASP.NET.
  • Display Binary Images In WebGrid From DatabaseFeb 05, 2016. In this article we are going to display binary data (Images) which are stored in the database in WebGrid; when clicked, they should enlarge and display in a popup window.
  • Differences Between Text, Stream, String and Binary DataMay 05, 2015. This article provides an overview of the differences between Text, Stream, String and Binary Data and related classes to stream.
  • Generic Binary Search Tree With Keyed Values Using C#Jan 30, 2015. A Binary Search Tree (BST) is a binary tree (max. 2 childs per node) with every node a key and associated value.
  • Patching .NET Binary Code by CFF ExplorerNov 03, 2014. Discover how to modify .NET binary code using CFF Explorer. This tutorial explores the process of patching executable files, enabling alterations to functionality or behavior.
  • .NET Binary Patching, Reversing With ReflexilOct 31, 2014. In this article you will learn .NET Binary Patching and Reversing with Reflexil.
  • .NET Binary Reverse Engineering: Part 1Oct 23, 2014. This article elucidates the Common Instruction Language (CIL), foundational to .NET, distinguishing directives, attributes, opcodes, and tools like IL Disassembler and Reflector. It explores CIL's role in code execution and its significance in Reverse Engineering. Covering assembly, class, and method directives, along with MSIL instructions.
  • Simple and Effective Way to Find the Boundary Items of a Binary TreeApr 07, 2014. This article describes an algorithm that performs boundary item detection of a binary tree. Special logic in this algorithm makes this more effective than others.
  • Insertion & Deletion in a Binary Search Tree Using C#Jan 25, 2014. This articles describes the algorithm to insert and delete elements in a Binary Search Tree (BST) and it's implementation in C#.
  • Searching a Binary Search Tree (BST) Using C#Jan 19, 2014. This articles descries the various ways to searc the elements of a Binary Search Tree (BST) such as searching for an element in a BST, finding the minimum and maximum elements and finding the successor and predecessor of an element.
  • Walking (Traversing) a Binary Search Tree Using C#Jan 14, 2014. This article describes walking (traversing) a Binary Search Tree implemented using C#.
  • Octal to Binary Conversion in Windows Store AppFeb 19, 2013. In this article I explain how to convert octal to binary number system in Windows Store App.
  • Store Password in Binary Format During RegistrationFeb 13, 2013. In this article, we will learn how to a store password in binary format during registration.
  • Convert Binary Number to Decimal Number in Windows Store AppFeb 13, 2013. In this article I explain how to convert binary Number into decimal Number in Windows Store App.
  • Convert Decimal Number to Binary Number in Windows Store AppFeb 12, 2013. In this article I will describes how to convert decimal number into binary number in Windows Store App.
  • Store Binary Data in String Using PHPJan 15, 2013. Store binary data in strings using two core functions in PHP like Pack and Unpack.
  • A Journey - From Binary to .NET: Part INov 09, 2012. Right now, everybody is discussing about .NET and its future in the near future. Is this all stuff only for advance users (developers)? Well ! Nobody is worried about that because the final aim for everybody is, Do I know this? If yes then what's next?
  • Download / Upload Binary Files on FTP Server Using C#Aug 11, 2012. Article about downloading and uploading binary files using FtpWebRequest in C#.
  • How to create a Binary File in C#Jul 12, 2012. How to create and write to a binary fine using C# and .NET. The System.IO.BinaryWriter class is used to write binary data to a stream. This class also provides an option to specify the character encoding including ASCII, Unicode, UTF32, UTF7, and UTF8 encoding.
  • How to read a binary file in C#Jul 12, 2012. Learn how to read a binary file in C# and .NET. The Read overloaded method writes primitive data types to a stream. The Write method can write Boolean, Byte, Char, Decimal, Double, and Integer data types.
  • How to write a binary file in C#Jul 12, 2012. How to write a binary file using C# and .NET. The Write overloaded method is used to write primitive data types to a stream. The Write method can write a Boolean, Byte, Char, Decimal, Double, and Integer data types.
  • Generic Way of Serializing and DeSerializing the Object as Binary Data Using Binary Formatter ASP.NET C#Apr 25, 2012. In this article we are going to see, how we serialize and deserialize an object as binary data in a generic way using the binary formatter.
  • Serializing and Deserializing an Object as Binary Data Using Binary Formatter ASP.NET C#Apr 21, 2012. In this article, we are going to see how to serialize and deserialize an object as binary data using the binary formatter.
  • Simulating Binary Literals in C#Mar 19, 2011. How to use integers instead of strings so that we can easily do bit and normal arithmetic with binary numbers.
  • 20 Questions Guessing Game using Binary TreesJan 18, 2011. In this article we will create a program that resembles 20 questions using a custom made binary tree.
  • How to: Read and Write Binary file in C#Aug 01, 2010. In this article we will see how to use BinaryReader and BinaryWriter class for reading and writing binary files respectively.
  • Control to Display Binary Images in ASP.NETApr 02, 2009. The RbmBinaryImage control will help you display images directly from your database. You could bind the Image field directly to the ImageContent property, also you could specify whether you want the display to be as a thumbnail or not and provide the thumbnail size.
  • Working with binary large objects (BLOBs)Mar 31, 2008. BLOBs (Binary Large Objects) efficiently store large files (images, videos) in databases. Saving/retrieving them involves managing memory usage for optimal performance. This article explores C# techniques using FileStream and BinaryReader to break BLOBs into manageable chunks, ensuring smooth database interaction.
  • Sending Binary Data from Oracle Application Server to WCF through MTOM: Part IIJun 06, 2007. This article will illustrate how to send binary data from Oracle Application Server (Oracle AS) to WCF using Web Services technologies specifically MTOM standard specification, thus achieving interoperability between the two platforms.
  • Sending Binary Data from Oracle Application Server to WCF through MTOM: Part IIMay 14, 2007. This article will illustrate how to send binary data from Windows Communication Foundation (WCF) to Oracle Application Server (Oracle AS) using Web Services specifications specifically MTOM standard specification, thus achieving interoperability between the two platforms. Some days ago, I blogged information in CSharpCorner blogs about MTOM specifications.
  • SOAP Message with Binary AttachmentsFeb 28, 2002. Recently Microsoft announced new format called DIME: Sending Binary Data with Your SOAP Messages.
  • A Journey: From Binary to .NET ! ::Part 1Jul 12, 2001. Right now, everybody is discussing about .NET and its future in the near future.
  • Binary Search – Iterative and Recursive Explained in Simple WordsJan 20, 2026. Master Binary Search! Learn iterative & recursive implementations with clear explanations & C++ code. Ace coding interviews & optimize search algorithms.
  • Binary Tree Traversal in DSA (Inorder, Preorder, Postorder)Jan 15, 2026. Master binary tree traversal: Inorder, Preorder, and Postorder explained with code examples. Ace your DSA interviews with this essential guide!
  • Binary Search From BasicsOct 28, 2025. Master binary search! This guide breaks down the core concepts, and real-world applications with C# examples.
  • Binary Search Tree (BST) Node Deleteion Algorythm in C#Apr 30, 2025. Learning BST: How to implement Binary Search Tree (BST) deletion algorithm in C#, with unit testing using xUnit and FluentAssertions. This guide covers deletion cases, real-world relevance.
  • Binary To Decimal Conversion in C#Dec 27, 2024. This article explains how to convert a binary number to a decimal number in C#. It covers two methods for the conversion, providing examples and code snippets. It's a helpful resource for beginners and intermediate programmers learning C#.
  • Binary To Decimal Using BlazorApr 11, 2023. In this article, you will learn about Binary To Decimal Using Blazor.
  • Upload And Save File In Database As VARBINARY Data In ASP.NET Using C# And VB.NETJan 13, 2021. In this article, I am going to explain how to upload and save the file in the database as VARBINARY Data in asp.net using c# and vb.net. Here I'll also explain how to upload files in asp.net as well as how to save the file in the SQL Server database as VARBINARY data.
  • Binary Heap In C#Apr 21, 2020. In this article, you will learn about Binary Heap in C#.
  • Binary Cracking and Byte Patching With IDA ProNov 19, 2014. This dissertation explores binary patching techniques using IDA Pro, emphasizing reverse engineering, byte-level manipulation, and assembly code analysis. It covers configuring IDA Pro for patching, analyzing binary logic, and demonstrates patching procedures via IDA scripts and manual byte editing.
  • Binary to Octal Converter Windows Store AppFeb 19, 2013. In this article you will learn about how to convert binary to octal in Windows Store App.
  • Binary Search in TypeScriptNov 26, 2012. In this article I will explain what is searching and how to use a binary search in TypeScript with an example.
  • Binary Search in JavaMar 24, 2012. In this article, we are going to describe the implementation of a Binary Search in the Java language. So first you should understand what a Binary Search is. A Binary Search is applicable only to a sorted array and any data structure.
  • Binary Serialization of a Class in a FileMar 02, 2012. In this article I will demonstrate how to use Binary serialization of a class in a file.
  • XML-Binary BASE64 image slideshow using ASP. NET - AJAXMar 05, 2008. This article would illustrate how to create and use HTTPHandler in ashx file, XML binary base64 to change image format, using Asp.net / Ajax. This primarily aims to have a slide show which displays many user profiles and photos.
  • Convert Image To BinaryFeb 16, 2007. In this tutorial you'll learn how to convert an image to a matrix of zeros and ones, aswell as how to open an image in a picture box.
  • How to use Array.BinarySearch() Method In C# Jan 10, 2000. Implement binary search in C# using Array class. How to use Array.BinarySearch() method on an array to find an item in the array.
  • Position of the Set BitMay 19, 2026. Find the position of the single set bit in an integer's binary representation. Learn the bit manipulation trick using n & (n-1) for efficient problem-solving.
  • Understanding How to Check if an Array Represents a Max HeapApr 30, 2026. Learn how to check if a given array represents a valid Max Heap. This guide explains the heap property, array representation, and provides an efficient O(n) Java solution with examples. Perfect for beginners and coding interview preparation.
  • Number of BSTs From ArrayApr 27, 2026. Calculate the number of unique Binary Search Trees (BSTs) possible for each element in an array as the root. Leverages Catalan numbers for efficient computation.
  • Flip to Maximize 1s in an ArrayApr 21, 2026. Learn how to solve the Flip to Maximize 1s problem in Java. This article explains step-by-step how to find the maximum number of 1s in a binary array after flipping at most one subarray, including code explanation, execution, and examples.
  • C# 14: From Helper Classes to First-Class APIsDec 24, 2025. C# 14 extension members introduce extension properties, operators, and static members. Learn how they transform helper classes into first-class APIs and enable modern, expressive, and binary-safe .NET domain modeling.
  • How to convert a tree to a doubly linked list in C++?Oct 17, 2025. Learn how to convert a binary tree or BST into a doubly linked list (DLL) in C++ efficiently. This guide explores three approaches: recursive inorder traversal, iterative stack-based conversion, and the memory-efficient Morris traversal. Understand the pros and cons of each method, including code examples, to choose the best solution for your needs. Master tree pointer manipulation and in-place transformations for coding interviews and practical applications. The conversion preserves inorder sequence.
  • Introduction to Tree Data StructureOct 11, 2025. Unlock the power of tree data structures! This guide covers fundamental concepts, terminology (root, parent, child, leaf), and various tree types like Binary Trees, BSTs, and Tries. Explore tree traversal methods (DFS, BFS) with Python examples and real-world applications in file systems, databases, and more. Master this essential data structure for efficient data organization and searching. Learn about time complexity, advantages, and limitations.
  • Find the Last Occurrence of an Element in a Sorted ArrayOct 09, 2025. Master the art of efficiently locating the last occurrence of an element within a sorted array! This guide explores both brute-force and optimized binary search approaches, providing a C++ implementation and a detailed dry run. Learn how to modify binary search to pinpoint the last instance of a target value, even with duplicates, achieving O(log n) time complexity. Perfect for algorithm enthusiasts and coding interview prep!
  • 🔍 How to Find the First Occurrence of an Element in a Sorted ArrayOct 08, 2025. This article provides a step-by-step approach, complete with a C code implementation, example dry run, and complexity analysis. Optimize your DSA skills and ace those coding interviews by understanding this essential technique. Learn how to adapt binary search for finding the leftmost instance, ensuring optimal performance in O(log n) time.
  • Powering Real-Time IoT Sensor Decoding in PythonOct 07, 2025. This article dives into binary-to-decimal conversion, a crucial skill for decoding live sensor data in real-time. Learn efficient Python techniques, build a robust decoder, handle edge cases, and optimize performance for industrial IoT monitoring. Master this fundamental conversion and gain actionable insights from raw machine data.