Tag: C++ coding exercise
On an 8 x 8 chessboard, there is one white rook. There also may be empty squares, white bishops, and black pawns. These are given as characters ‘R’, ‘.’, …
Given two arrays, write a function to compute their intersection. Example 1: Input: nums1 = , nums2 = Output: Example 2: Input: nums1 = , nums2 = Output: Note: …
In a given integer array nums, there is always exactly one largest element. Find whether the largest element in the array is at least twice as much as every …
A message containing letters from A-Z is being encoded to numbers using the following mapping: ‘A’ – 1 ‘B’ – 2 … ‘Z’ – 26 Given a non-empty string …
Given an array A of strings made only from lowercase letters, return a list of all characters that show up in all strings within the list (including duplicates). For …