In this article, we have explained Bit Array which is a Data Structure used in various problems to represent combinatorial information in an array in a compressed way. We have presented a code example of Bit Array in Java as well.
Table of contents:
Basics of Bit ArrayPopulation or Hamming weightWhy bit array is used?Bit Array in JavaSparse vs Dense Bit arraysBasics of Bit Array
Bit Array is a data structures that compactly stores Boolean values or bits in the form of an array. The bits c...
Published on June 24, 2021 23:37