Python Strings

2021 VietMX 13

In this tutorial you will learn to create, format, modify and delete strings in Python. Also, you will be introduced to various string operations and […]

JavaScript Strings

2021 VietMX 1

In JavaScript, the textual data is stored as strings. There is no separate type for a single character. The internal format for strings is always UTF-16, […]

Concatenating Strings In Java

2021 VietMX 0

1. Introduction Java provides a substantial number of methods and classes dedicated to concatenating Strings. In this tutorial, we’ll dive into several of them as well as outline […]

Comparing Strings in Java

2021 VietMX 0

1. Overview In this article, we’ll talk about the different ways of comparing Strings in Java. As String is one of the most used data types in Java, this […]

Compact Strings in Java 9

2021 VietMX 0

1. Overview Strings in Java are internally represented by a char[] containing the characters of the String. And, every char is made up of 2 bytes because Java internally uses UTF-16. For […]

Three strings

2020 VietMX 0

You are given three strings (s 1, s 2, s 3). For each integer l (1 ≤ l ≤ min(|s 1|, |s 2|, |s 3|) you need to find how many triples ( i 1, i 2, i 3) exist such that three strings s k[i k… i k + l - 1] (k = 1, 2, 3) are pairwise equal. Print all found […]

Game with Strings

2020 VietMX 0

You play the game with your friend. The description of this game is listed below. Your friend creates n distinct strings of the same length m and tells you […]

Wilbur and Strings

2020 VietMX 0

Wilbur the pig now wants to play with strings. He has found an n by m table consisting only of the digits from 0 to 9 where the rows are numbered 1 to n and the columns […]

A Game on Strings

2020 VietMX 0

Alice and Bob are playing a game on strings. Initially, they have some string $t$. In one move the first player selects the character $c$ […]

Dreamoon Likes Strings

2020 VietMX 0

Dreamoon likes strings. Today he created a game about strings: String $s_1, s_2, \ldots, s_n$ is beautiful if and only if for each $1 \le i < […]