Leetcode in C 1-bit and 2-bit Characters 2021.1.10We have two special characters. The first character can be represented by one bit 0. The second character can be represented by two bits…Jan 10, 2021Jan 10, 2021
Leetcode in C-Two SumGiven an array of integers nums and an integer target, return indices of the two numbers such that they add up to target.Jan 4, 2021Jan 4, 2021
Leetcode in C-Move Zeroes 2021.1.1Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements.Jan 1, 2021Jan 1, 2021
Leetcode in C-Max Consecutive OnesGiven a binary array, find the maximum number of consecutive 1s in this array.Dec 30, 2020Dec 30, 2020
Leetcode in C DAY3-Maximum SubarrayGiven an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum.Dec 28, 2020Dec 28, 2020