Day 26 of LeetCode Challenge
Problem 1: Counting Bits
Link to the problem: leetcode.com/problems/counting-bits/
class Solution {
public int[] countBits(int n) {
int[] ans = new int[n+1];
ans[0] = 0;
int num=1;
for(int i=1; i<ans.length; i++){...
tusharpant.hashnode.dev2 min read