Bit Manipulation
Bit Manipulation¶
- 996. Number of Squareful Arrays
- 995. Minimum Number of K Consecutive Bit Flips
- 982. Triples with Bitwise AND Equal To Zero
- 980. Unique Paths III
- 957. Prison Cells After N Days
- 943. Find the Shortest Superstring
- 90. Subsets II
- 898. Bitwise ORs of Subarrays
- 89. Gray Code
- 868. Binary Gap
- 864. Shortest Path to Get All Keys
- 861. Score After Flipping Matrix
- 847. Shortest Path Visiting All Nodes
- 832. Flipping an Image
- 810. Chalkboard XOR Game
- 805. Split Array With Same Average
- 784. Letter Case Permutation
- 782. Transform to Chessboard
- 78. Subsets
- 779. K-th Symbol in Grammar
- 762. Prime Number of Set Bits in Binary Representation
- 756. Pyramid Transition Matrix
- 751. IP to CIDR
- 698. Partition to K Equal Sum Subsets
- 693. Binary Number with Alternating Bits
- 691. Stickers to Spell Word
- 672. Bulb Switcher II
- 67. Add Binary
- 645. Set Mismatch
- 638. Shopping Offers
- 526. Beautiful Arrangement
- 491. Non-decreasing Subsequences
- 477. Total Hamming Distance
- 476. Number Complement
- 473. Matchsticks to Square
- 465. Optimal Account Balancing
- 464. Can I Win
- 461. Hamming Distance
- 421. Maximum XOR of Two Numbers in an Array
- 411. Minimum Unique Word Abbreviation
- 405. Convert a Number to Hexadecimal
- 401. Binary Watch
- 397. Integer Replacement
- 393. UTF-8 Validation
- 389. Find the Difference
- 371. Sum of Two Integers
- 351. Android Unlock Patterns
- 3495. Minimum Operations to Make Array Elements Zero
- 3444. Minimum Increments for Target Multiples in an Array
- 3435. Frequencies of Shortest Supersequences
- 342. Power of Four
- 3393. Count Paths With the Given XOR Value
- 338. Counting Bits
- 3376. Minimum Time to Break Locks I
- 3370. Smallest Number With All Set Bits
- 3344. Maximum Sized Array
- 3315. Construct the Minimum Bitwise Array II
- 3314. Construct the Minimum Bitwise Array I
- 3309. Maximum Possible Number by Binary Concatenation
- 3307. Find the K-th Character in String Game II
- 3304. Find the K-th Character in String Game I
- 3287. Find the Maximum Sequence Value of Array
- 3283. Maximum Number of Moves to Kill All Pawns
- 3276. Select Cells in Grid With Maximum Score
- 3226. Number of Bit Changes to Make Two Integers Equal
- 3215. Count Triplets with Even XOR Set Bits II
- 3211. Generate Binary Strings Without Adjacent Zeros
- 3209. Number of Subarrays With AND Value of K
- 320. Generalized Abbreviation
- 3199. Count Triplets with Even XOR Set Bits I
- 3191. Minimum Operations to Make Binary Array Elements Equal to One I
- 3181. Maximum Total Reward Using Operations II
- 318. Maximum Product of Word Lengths
- 3173. Bitwise OR of Adjacent Elements
- 3171. Find Subarray With Bitwise OR Closest to K
- 3158. Find the XOR of Numbers Which Appear Twice
- 3154. Find Number of Ways to Reach the K-th Stair
- 3149. Find the Minimum Cost Array Permutation
- 3145. Find Products of Elements of Big Array
- 3141. Maximum Hamming Distances
- 3133. Minimum Array End
- 3117. Minimum Sum of Values by Dividing Array
- 3116. Kth Smallest Amount With Single Denomination Combination
- 3108. Minimum Cost Walk in Weighted Graph
- 3097. Shortest Subarray With OR at Least K II
- 3095. Shortest Subarray With OR at Least K I
- 3094. Guess the Number Using Bitwise Questions II
- 3068. Find the Maximum Sum of Node Values
- 3064. Guess the Number Using Bitwise Questions I
- 3022. Minimize OR of Remaining Elements Using Operations
- 3011. Find if Array Can Be Sorted
- 3007. Maximum Number That Sum of the Prices Is Less Than or Equal to K
- 3003. Maximize the Number of Partitions After Operations
- 2997. Minimum Number of Operations to Make Array XOR Equal to K
- 2992. Number of Self-Divisible Permutations
- 2980. Check if Bitwise OR Has Trailing Zeros
- 2959. Number of Possible Sets of Closing Branches
- 2939. Maximum Xor Product
- 2935. Maximum Strong Pair XOR II
- 2932. Maximum Strong Pair XOR I
- 2920. Maximum Points After Collecting Coins From All Nodes
- 2917. Find the K-or of an Array
- 29. Divide Two Integers
- 2897. Apply Operations on Array to Maximize Sum of Squares
- 2871. Split Array Into Maximum Number of Subarrays
- 287. Find the Duplicate Number
- 2869. Minimum Operations to Collect Elements
- 2859. Sum of Values at Indices With K Set Bits
- 2857. Count Pairs of Points With Distance k
- 2836. Maximize Value of Function in a Ball Passing Game
- 2835. Minimum Operations to Form Subsequence With Target Sum
- 2802. Find The K-th Lucky Number
- 2791. Count Paths That Can Form a Palindrome in a Tree
- 2749. Minimum Operations to Make the Integer Zero
- 2741. Special Permutations
- 2732. Find a Good Subset of the Matrix
- 2708. Maximum Strength of a Group
- 2683. Neighboring Bitwise XOR
- 2680. Maximum OR
- 268. Missing Number
- 266. Palindrome Permutation
- 2657. Find the Prefix Common Array of Two Arrays
- 260. Single Number III
- 2595. Number of Even and Odd Bits
- 2588. Count the Number of Beautiful Subarrays
- 2572. Count the Number of Square-Free Subsets
- 2571. Minimum Operations to Reduce an Integer to 0
- 2568. Minimum Impossible OR
- 2564. Substring XOR Queries
- 2546. Apply Bitwise Operations to Make Strings Equal
- 2527. Find Xor-Beauty of Array
- 2506. Count Pairs Of Similar Strings
- 2505. Bitwise OR of All Subsequence Sums
- 2438. Range Product Queries of Powers
- 2433. Find The Original Array of Prefix Xor
- 2429. Minimize XOR
- 2425. Bitwise XOR of All Pairings
- 2419. Longest Subarray With Maximum Bitwise AND
- 2411. Smallest Subarrays With Maximum Bitwise OR
- 2403. Minimum Time to Kill All Monsters
- 2401. Longest Nice Subarray
- 2397. Maximum Rows Covered by Columns
- 2354. Number of Excellent Pairs
- 2351. First Letter to Appear Twice
- 2322. Minimum Score After Removals on a Tree
- 2317. Maximum XOR After Operations
- 231. Power of Two
- 2306. Naming a Company
- 2305. Fair Distribution of Cookies
- 2275. Largest Combination With Bitwise AND Greater Than Zero
- 2247. Maximum Cost of Trip With K Highways
- 2220. Minimum Bit Flips to Convert Number
- 222. Count Complete Tree Nodes
- 2212. Maximum Points in an Archery Competition
- 2206. Divide Array Into Equal Pairs
- 2184. Number of Ways to Build Sturdy Brick Wall
- 2174. Remove All Ones With Row and Column Flips II
- 2172. Maximum AND Sum of Array
- 2157. Groups of Strings
- 2152. Minimum Number of Lines to Cover Points
- 2151. Maximum Good People Based on Statements
- 2135. Count Words Obtained After Adding a Letter
- 2128. Remove All Ones With Row and Column Flips
- 2044. Count Number of Maximum Bitwise-OR Subsets
- 2035. Partition Array Into Two Arrays to Minimize Sum Difference
- 2032. Two Out of Three
- 201. Bitwise AND of Numbers Range
- 2002. Maximum Product of the Length of Two Palindromic Subsequences
- 1994. The Number of Good Subsets
- 1986. Minimum Number of Work Sessions to Finish the Tasks
- 1947. Maximum Compatibility Score Sum
- 1938. Maximum Genetic Difference Query
- 1930. Unique Length-3 Palindromic Subsequences
- 1915. Number of Wonderful Substrings
- 191. Number of 1 Bits
- 1908. Game of Nim
- 190. Reverse Bits
- 1879. Minimum XOR Sum of Two Arrays
- 187. Repeated DNA Sequences
- 1863. Sum of All Subset XOR Totals
- 1835. Find XOR Sum of All Pairs Bitwise AND
- 1829. Maximum XOR for Each Query
- 1815. Maximum Number of Groups Getting Fresh Donuts
- 1803. Count Pairs With XOR in a Range
- 1799. Maximize Score After N Operations
- 1787. Make the XOR of All Segments Equal to Zero
- 1763. Longest Nice Substring
- 1755. Closest Subsequence Sum
- 1738. Find Kth Largest XOR Coordinate Value
- 1734. Decode XORed Permutation
- 1723. Find Minimum Time to Finish All Jobs
- 1720. Decode XORed Array
- 1707. Maximum XOR With an Element From Array
- 1684. Count the Number of Consistent Strings
- 1681. Minimum Incompatibility
- 1680. Concatenation of Consecutive Binary Numbers
- 1659. Maximize Grid Happiness
- 1655. Distribute Repeating Integers
- 1617. Count Subtrees With Max Distance Between Cities
- 1611. Minimum One Bit Operations to Make Integers Zero
- 1601. Maximum Number of Achievable Transfer Requests
- 1595. Minimum Cost to Connect Two Groups of Points
- 1558. Minimum Numbers of Function Calls to Make Target Array
- 1542. Find Longest Awesome Substring
- 1525. Number of Good Ways to Split a String
- 1521. Find a Value of a Mysterious Function Closest to Target
- 1506. Find Root of N-Ary Tree
- 1494. Parallel Courses II
- 1486. XOR Operation in an Array
- 1461. Check If a String Contains All Binary Codes of Size K
- 1457. Pseudo-Palindromic Paths in a Binary Tree
- 1442. Count Triplets That Can Form Two Arrays of Equal XOR
- 1434. Number of Ways to Wear Different Hats to Each Other
- 1404. Number of Steps to Reduce a Number in Binary Representation to One
- 1386. Cinema Seat Allocation
- 1371. Find the Longest Substring Containing Vowels in Even Counts
- 137. Single Number II
- 136. Single Number
- 1356. Sort Integers by The Number of 1 Bits
- 1349. Maximum Students Taking Exam
- 1342. Number of Steps to Reduce a Number to Zero
- 1318. Minimum Flips to Make a OR b Equal to c
- 1310. XOR Queries of a Subarray
- 1284. Minimum Number of Flips to Convert Binary Matrix to Zero Matrix
- 1256. Encode Number
- 1255. Maximum Score Words Formed by Letters
- 1239. Maximum Length of a Concatenated String with Unique Characters
- 1238. Circular Permutation in Binary Representation
- 1178. Number of Valid Words for Each Puzzle
- 1177. Can Make Palindrome from Substring
- 1125. Smallest Sufficient Team
- 1066. Campus Bikes II
- 1018. Binary Prefix Divisible By 5
- 1009. Complement of Base 10 Integer