Check if a String is Uppercase in Golang
The challenge
Create a method IsUpperCase to see whether the string is ALL CAPS. For example:
type MyString string
MyString("c").IsUpperCase() …
Read Article →
In-depth guides, insights, and best practices for modern software engineering
Create a method IsUpperCase to see whether the string is ALL CAPS. For example:
type MyString string
MyString("c").IsUpperCase() …
Read Article →
In Go, there are multiple ways to make a string UpperCase, each of them are by using the strings package.
strings.ToUpper):func ToUpper(str …
Given a string of words, return the length of the shortest word(s).
The input string will never be empty and you do not need to account …
Read Article →Given an integer numRows, return the first numRows of Pascal’s triangle.
In Pascal’s triangle, each number is the sum of the …
Read Article →Your goal is to return multiplication table for number that is always an integer from 1 to 10.
For example, a multiplication table …
Read Article →Remove the left-most duplicates from a list of integers and return the result.
// Remove the 3's at indices 0 and 3
// followed by …
Read Article →
All we eat is water and dry matter.
John bought potatoes: their weight is 100 kilograms. Potatoes contain water and dry matter.
The …
Read Article →The input is a string str of digits. Cut the string into chunks (a chunk here is a substring of the initial string) of size sz (ignore …
Coroutines are a way to handle multithreading in Kotlin, read more about it from the official docs: …
Read Article →val pair: Pair<String, Int> = "myKey" to 2
A utility class when you want to return 2 values that are not related …
Read Article →Given a month as an integer from 1 to 12, return to which quarter of the year it belongs as an integer number.
For example: month 2 …
Read Article →Create a function that takes 2 nonnegative integers in form of a string as an input, and outputs the sum (also as a string):
Example: ( …
Read Article →