Leetcode problem 58 - Number of Arithmetic Triplets
You are given a 0-indexed, strictly increasing integer array nums and a positive integer diff. A triplet (i, j, k) is an arithmetic triplet if the following ...
You are given a 0-indexed, strictly increasing integer array nums and a positive integer diff. A triplet (i, j, k) is an arithmetic triplet if the following ...
You are given the strings key and message, which represent a cipher key and a secret message, respectively. The steps to decode message are as follows:
There is a stream of n (idKey, value) pairs arriving in an arbitrary order, where idKey is an integer between 1 and n and value is a string. No two pairs hav...
A sentence is a list of words that are separated by a single space with no leading or trailing spaces. Each of the words consists of only uppercase and lower...
Given two string arrays word1 and word2, return true if the two arrays represent the same string, and false otherwise.