I am doing a C++ coding exercise, as usual…. And to split a string in C++, the best/easy way is to use the boost library… However, this is not …
Given any string (assume both lowercase or uppercase letters), check if a permutation of the string could form a palindrome. For example, canPermutePalindrome(“aab”) = true while canPermutePalindrome(“ab”) = false. …
The Wiggle Sorting may produce more than one possible outcome as long as the final sorted array satisfies: nums <= nums >= nums <= nums Given an unsorted array …
Suppose if you are given an array of N integers, how could you find out the top K elements based on its frequencies? For example, Input: nums = , …
Given a 2D Matrix, return the transpose of it. The transpose of a matrix is the matrix flipped over it’s main diagonal, switching the row and column indices of …
Recently I have observed a slightly increase of CPU usage (and quite frequent cpu spikes) on one of my API server, which is used to host Steem Tools/APIs and …