Category: math
Given two strings a, and b, both representing an integer, add them and return it in the same string representation. Bonus: can you implement the addition directly, instead of …
You are given a string s and an integer k. Return the number of palindromes you can construct of length k using only letters in s. Letters can be …
Given an integer n, return the nth (0-indexed) row of Pascal’s triangle. Pascal’s triangle can be created as follows: In the top row, there is an array of 1. …
Problem statement: Given a cage that has R rabbits and C chicken, and we know there are H heads and L legs. So find out the value of R …
Given a string s consisting only of 1s and 0s, you can delete any two adjacent letters if they are different. Return the length of the smallest string that …