Tutorialspoint.dev
Welcome To Tutorialspoint.dev
Officially launched 18th May 2019
C C++ CPP-Library

C++ String Class and its Applications Set 2

We have discussed String class and some of its functions in below set 1. C++ string class and its applications | Set 1 More functions are discussed in this article St...
C C++ Java

How to split a string in C/C++, Python and Java?

Splitting a string by some delimiter is a very common task. For example, we have a comma separated list of items from a file and we want individual items in an array....
C++ Strings cpp-string

stringstream in C++ and its applications

A stringstream associates a string object with a stream allowing you to read from the string as if it were a stream (like cin). Basic methods are – cle...
C C++ School Programming

C++ string class and its applications

In C++ we can store string by one of the two ways – C style strings string class (discussed in this post) In this post, second method is discussed. strin...
C++ cpp-strings-library STL

string at() in C++

std::string::at can be used to extract characters by characters from a given string. It supports two different syntaxes both having similar parameters: Syntax 1: ch...
C C++ C-Library

Substring in C++

In C++, std::substr() is a predefined function used for string handling. string.h is the header file required for string functions. This function takes two values po...
C++ cpp-string cpp-strings-library

char* vs std:string vs char[] in C++

In this article, we are going to inspect three different ways of initializing strings in C++ and discuss differences between them. 1. Using char* Here, str is basical...
Dynamic Programming Strings Accolite

Longest Palindromic Substring Set 1

Given a string, find the longest substring which is palindrome. For example, if the given string is “forgeeksskeegfor”, the output should be “g...
Dynamic Programming Strings Google

Find if a string is interleaved of two other strings DP-33

Given three strings A, B and C. Write a function that checks whether C is an interleaving of A and B. C is said to be interleaving A and B, if it contains all charac...
Dynamic Programming Strings Microsoft

Longest Common Substring DP-29

Given two strings ‘X’ and ‘Y’, find the length of the longest common substring. Examples : Input : X = “GeeksforGeeks”, ...

Subscribe to Our Newsletter