Category: coding exercise
We are to write the letters of a given string S, from left to right into lines. Each line has maximum width 100 units, and if writing a letter …
Given an array A of integers, for each integer A we may choose any x with -K <= x <= K, and add x to A. After this process, …
We have an array A of integers, and an array queries of queries. For the i-th query val = queries, index = queries, we add val to A. Then, …
We are given an array A of N lowercase letter strings, all of the same length. Now, we may choose any set of deletion indices, and for each string, …
Given an array of integers nums, write a method that returns the “pivot” index of this array. We define the pivot index as the index where the sum of …