Problem ðŸ¤” Given a string, you need to reverse the order of characters in each word within a sentence while still preserving whitespace and initial word order. Example 1: Input: “Let’s take LeetCode contest” Output: …


Reverse Words in a String

Array Partition
Problem ðŸ¤” Given an array of 2n integers, your task is to group these integers into n pairs of integer, say (a1, b1), (a2, b2), …, (an, bn) which makes sum of min(ai, bi) for …

ReverseNum
reverseNum Problem Given a 32bit signed integer, reverse digits of an integer. Example 1: Input: 123 Output:Â 321 Example 2: Input: 123 Output: 321 Example 3: Input: 120 Output: 21 Code def reverse(self, x): Â …

Hamming Distance
Problem The Hamming distance between two integers is the number of positions at which the corresponding bits are different. Given two integers x and y, calculate the Hamming distance. 1 Â (0 0 0 1) …