Difference between concatenation of strings using (str += s) and (str = str + s)
Last Updated :
23 Jul, 2025
A string is a collection of characters. For example, "GeeksforGeeks" is a string. C++ provides primitive data types to create a string. The string can also be initialized at the time of declaration.
Syntax:
string str;
string str = "GeeksforGeeks"
Here, "GeeksforGeeks" is a string literal.
This article shows the difference between the concatenation of the strings using the addition assignment operator (+=) and the addition (+) operator used with strings. Concatenation is the process of joining end-to-end.
Addition assignment (+=) operator
In C++, a string addition assignment operator is used to concatenate one string to the end of another string.
Syntax:
str += value
Here,
value is a string to be concatenated with str.
It appends the value (literal) at the end of the string, without any reassignment.
Example: Below is the C++ program to demonstrate the addition assignment operator.
C++
// C++ program to implement
// the above approach
#include <iostream>
using namespace std;
// Driver code
int main()
{
// Declaring an empty string
string str = "Geeks";
// String to be concatenated
string str1 = "forGeeks";
// Concatenate str and str1
// using addition assignment operator
str += str1;
// Print the string
cout << str;
return 0;
}
Java
// Java program to implement
// the above approach
import java.util.*;
class GFG{
// Driver code
public static void main(String[] args)
{
// Declaring an empty String
String str = "Geeks";
// String to be concatenated
String str1 = "forGeeks";
// Concatenate str and str1
// using addition assignment operator
str += str1;
// Print the String
System.out.print(str);
}
}
// This code is contributed by 29AjayKumar
Python3
# Python code for the above approach
# Driver code
# Declaring an empty string
str = "Geeks";
# String to be concatenated
str1 = "forGeeks";
# Concatenate str and str1
# using addition assignment operator
str += str1;
# Print the string
print(str);
# This code is contributed by gfgking
C#
// C# program to implement
// the above approach
using System;
public class GFG{
// Driver code
public static void Main(String[] args)
{
// Declaring an empty String
String str = "Geeks";
// String to be concatenated
String str1 = "forGeeks";
// Concatenate str and str1
// using addition assignment operator
str += str1;
// Print the String
Console.Write(str);
}
}
// This code is contributed by 29AjayKumar
JavaScript
<script>
// JavaScript code for the above approach
// Driver code
// Declaring an empty string
let str = "Geeks";
// String to be concatenated
let str1 = "forGeeks";
// Concatenate str and str1
// using addition assignment operator
str += str1;
// Print the string
document.write(str);
// This code is contributed by Potta Lokesh
</script>
Addition(+) operator
In C++, a string addition operator is used to concatenate one string to the end of another string. But in this case the after the concatenation of strings, the modified string gets assigned to the string.
Syntax:
str = str + value
Here,
value is a string to be concatenated with str.
It firstly appends the value (literal) at the end of the string and then reassigns it to str.
Example: Below is the C+ program to demonstrate the above approach.
C++
// C++ program to implement
// the above approach
#include <iostream>
using namespace std;
// Driver code
int main()
{
// Declaring an empty string
string str = "Geeks";
// String to be concatenated
string str1 = "forGeeks";
// Concatenate str and str1
// using addition operator
str = str + str1;
// Print the string
cout << str;
return 0;
}
Java
// Java program to implement
// the above approach
class GFG{
// Driver code
public static void main(String[] args)
{
// Declaring an empty String
String str = "Geeks";
// String to be concatenated
String str1 = "forGeeks";
// Concatenate str and str1
// using addition operator
str = str + str1;
// Print the String
System.out.print(str);
}
}
// This code is contributed by 29AjayKumar
Python3
# Python program to implement
# the above approach
# Driver code
# Declaring an empty string
str1 = "Geeks"
# String to be concatenated
str2 = "forGeeks"
# Concatenate str and str1
# using addition operator
str1 += str2
# Print the string
print(str1)
# This code is contributed by phasing17
C#
// C# program to implement
// the above approach
using System;
public class GFG {
// Driver code
public static void Main(String[] args) {
// Declaring an empty String
String str = "Geeks";
// String to be concatenated
String str1 = "forGeeks";
// Concatenate str and str1
// using addition operator
str = str + str1;
// Print the String
Console.Write(str);
}
}
// This code is contributed by umadevi9616
JavaScript
// JavaScript program to implement
// the above approach
// Driver code
function main() {
// Declaring an empty string
let str = "Geeks";
// String to be concatenated
let str1 = "forGeeks";
// Concatenate str and str1
// using addition operator
str = str + str1;
// Print the string
console.log(str);
}
main();
// Contributed by adityashae15
Although both operators when used with strings can be used for the concatenation of strings, there are some differences between them:
Factor 1: Assignment of the modified string:
- The addition assignment operator (+=) concatenates two strings by appending one string at the end of another string.
- The addition operator(+) concatenates two strings by appending one string at the end of the original string and then assigning the modified string to the original string.
Example: Below is the C++ program to demonstrate the above approach.
C++
#include <iostream>
using namespace std;
int main()
{
// Declaring an empty string
string str = "Geeks";
// String to be concatenated
string str1 = "forGeeks";
// Concatenate str and str1
// using addition assignment operator
// Concatenate str1 at the end of str
str += str1;
// Print the string
cout << "Resultant string using += "
<< str << '\n';
str = "Geeks";
// Concatenate str and str1
// using addition operator
// Concatenate str and str1
// and assign the result to str again
str = str + str1;
// Print the string
cout << "Resultant string using + "
<< str;
return 0;
}
Java
public class StringConcatenation {
public static void main(String[] args) {
// Declaring an empty string
String str = "Geeks";
// String to be concatenated
String str1 = "forGeeks";
// Concatenate str and str1 using +=
// Concatenate str1 at the end of str
str += str1;
// Print the string
System.out.println("Resultant string using += " + str);
// Reset str to its original value
str = "Geeks";
// Concatenate str and str1 using +
// Concatenate str and str1
// and assign the result to str again
str = str + str1;
// Print the string
System.out.println("Resultant string using + " + str);
}
}
Python3
# Python equivalent of above C++ code
# Declaring an empty string
str = "Geeks"
# String to be concatenated
str1 = "forGeeks"
# Concatenate str and str1
# using addition assignment operator
# Concatenate str1 at the end of str
str += str1
# Print the string
print("Resultant string using += ",str)
str = "Geeks"
# Concatenate str and str1
# using addition operator
# Concatenate str and str1
# and assign the result to str again
str = str + str1
# Print the string
print("Resultant string using + ",str)
C#
using System;
class Program {
static void Main(string[] args) {
// Declaring an empty string
string str = "Geeks";
// String to be concatenated
string str1 = "forGeeks";
// Concatenate str and str1
// using addition assignment operator
// Concatenate str1 at the end of str
str += str1;
// Print the string
Console.WriteLine("Resultant string using += " + str);
// Reset str
str = "Geeks";
// Concatenate str and str1
// using addition operator
// Concatenate str and str1
// and assign the result to str again
str = str + str1;
// Print the string
Console.WriteLine("Resultant string using + " + str);
}
}
JavaScript
// Declaring an empty string
let str = "Geeks";
// String to be concatenated
let str1 = "forGeeks";
// Concatenate str and str1 using +=
// Concatenate str1 at the end of str
str += str1;
// Print the string
console.log("Resultant string using += " + str);
// Reset str to its original value
str = "Geeks";
// Concatenate str and str1 using +
// Concatenate str and str1
// and assign the result to str again
str = str + str1;
// Print the string
console.log("Resultant string using + " + str);
OutputResultant string using += GeeksforGeeks
Resultant string using + GeeksforGeeks
Factor 2: Operator overloaded functions used:
- The addition assignment operator (+=) concatenates two strings because the operator is overloaded internally.
- In this case, also, the addition operator (+) concatenates two strings because the operator is overloaded internally.
Factor 3: Number of strings concatenated:
- The addition assignment operator (+=) can concatenate two strings at a time in a single statement.
- The addition operator (+) can concatenate multiple strings by using multiple addition (+) operators between the string in a single statement. For example, str = str1 + str2 + str3 + ... + strn
Example: In this program, three different statements are required to concatenate three strings; str, str1, str2, and str3 using the assignment addition operator (+=) and a single statement is required to concatenate three strings; str, str1, str2, and str3 using the addition operator (+).
C++
// C++ program to implement
// the above approach
#include <iostream>
using namespace std;
// Driver code
int main()
{
// Declaring an empty string
string str = "GeeksforGeeks";
// String to be concatenated
string str1 = " GeeksforGeeks";
// String to be concatenated
string str2 = " GeeksforGeeks";
// String to be concatenated
string str3 = " GeeksforGeeks";
// Concatenate str, str1, str2 and str3
// using addition assignment operator
// in multiple statements
str += str1;
str += str2;
str += str3;
// Print the string
cout << "Resultant string using +="
<< str << '\n';
str = "GeeksforGeeks";
// Concatenate str, str1, str and str3
// using addition operator
// in a single statement
str = str + str1 + str2 + str3;
// Print the string
cout << "Resultant string using + "
<< str;
return 0;
}
Java
// Java program to implement
// the above approach
import java.io.*;
class GFG {
// Driver code
public static void main (String[] args)
{
// Declaring an empty string
String str = "GeeksforGeeks";
// String to be concatenated
String str1 = " GeeksforGeeks";
// String to be concatenated
String str2 = " GeeksforGeeks";
// String to be concatenated
String str3 = " GeeksforGeeks";
// Concatenate str, str1, str2 and str3
// using addition assignment operator
// in multiple statements
str += str1;
str += str2;
str += str3;
// Print the string
System.out.println("Resultant string using +="
+str);
str = "GeeksforGeeks";
// Concatenate str, str1, str and str3
// using addition operator
// in a single statement
str = str + str1 + str2 + str3;
// Print the string
System.out.print("Resultant string using + "
+ str);
}
}
//this code is contributed by shivanisinghss2110
Python3
# Initialize an empty string
str = "GeeksforGeeks"
# Strings to be concatenated
str1 = " GeeksforGeeks"
str2 = " GeeksforGeeks"
str3 = " GeeksforGeeks"
# Concatenate str, str1, str2, and str3
# using the addition assignment operator
# in multiple statements
str += str1
str += str2
str += str3
# Print the resultant string
print("Resultant string using +=", str)
# Reset the string to the original value
str = "GeeksforGeeks"
# Concatenate str, str1, str2, and str3
# using the addition operator in a single statement
str = str + str1 + str2 + str3
# Print the resultant string
print("Resultant string using +", str)
C#
using System;
class Program
{
static void Main(string[] args)
{
// Declaring an empty string
string str = "GeeksforGeeks";
// Strings to be concatenated
string str1 = " GeeksforGeeks";
string str2 = " GeeksforGeeks";
string str3 = " GeeksforGeeks";
// Concatenate str, str1, str2, and str3
// using addition assignment operator
// in multiple statements
str += str1;
str += str2;
str += str3;
// Print the string
Console.WriteLine("Resultant string using +=" + str);
// Reset the string
str = "GeeksforGeeks";
// Concatenate str, str1, str2, and str3
// using addition operator in a single statement
str = str + str1 + str2 + str3;
// Print the string
Console.WriteLine("Resultant string using + " + str);
}
}
JavaScript
// Declaring an empty string
let str = "GeeksforGeeks";
// String to be concatenated
let str1 = " GeeksforGeeks";
// String to be concatenated
let str2 = " GeeksforGeeks";
// String to be concatenated
let str3 = " GeeksforGeeks";
// Concatenate str, str1, str2, and str3
// using addition assignment operator
// in multiple statements
str += str1;
str += str2;
str += str3;
// Print the string
console.log("Resultant string using +=" + str);
str = "GeeksforGeeks";
// Concatenate str, str1, str2, and str3
// using addition operator
// in a single statement
str = str + str1 + str2 + str3;
// Print the string
console.log("Resultant string using + " + str);
OutputResultant string using +=GeeksforGeeks GeeksforGeeks GeeksforGeeks GeeksforGeeks
Resultant string using + GeeksforGeeks GeeksforGeeks GeeksforGeeks GeeksforGeeks
Factor 4: Performance:
- The addition assignment operator (+=) when used for the concatenation of strings gives better efficiency as compared to the addition(+) operator. This is because no reassignment of strings takes place in this case.
- The addition operator (+) when used for the concatenation of strings, is less efficient as compared to the addition (+=) operator. This is because the assignment of strings takes place in this case.
Example: Below is the program to demonstrate the performance of the += string concatenation method.
C++
// C++ program to calculate
// performance of +=
#include <bits/stdc++.h>
#include <sys/time.h>
using namespace std;
// Function whose time is to
// be measured
void fun()
{
// Initialize a n empty string
string str = "";
// concatenate the characters
// from 'a' to 'z'
for (int i = 0; i < 26; i++) {
char c = 'a' + i;
str += c;
}
}
// Driver Code
int main()
{
// Use function gettimeofday()
// can get the time
struct timeval start, end;
// Start timer
gettimeofday(&start, NULL);
// unsync the I/O of C and C++.
ios_base::sync_with_stdio(false);
// Function Call
fun();
// Stop timer
gettimeofday(&end, NULL);
// Calculating total time taken
// by the program.
double time_taken;
time_taken = (end.tv_sec
- start.tv_sec)
* 1e6;
time_taken = (time_taken
+ (end.tv_usec
- start.tv_usec))
* 1e-6;
cout << "Time taken by program is : "
<< fixed
<< time_taken << setprecision(6);
cout << " sec" << endl;
return 0;
}
Java
import java.util.Date;
public class Main {
// Function whose time is to be measured
static void fun() {
// Initialize an empty string
StringBuilder str = new StringBuilder();
// concatenate the characters from 'a' to 'z'
for (int i = 0; i < 26; i++) {
char c = (char) ('a' + i);
str.append(c);
}
}
// Driver code
public static void main(String[] args) {
// Start timer
long startTime = System.nanoTime();
// Function Call
fun();
// Stop timer
long endTime = System.nanoTime();
// Calculating total time taken by the program
double timeTaken = (endTime - startTime) / 1e9;
System.out.printf("Time taken by program is : %.6f sec%n", timeTaken);
}
}
Python3
import time
# Function whose time is to be measured
def fun():
# Initialize an empty string
str = ""
# Concatenate the characters from 'a' to 'z'
for i in range(26):
c = chr(ord('a') + i)
str += c
# Driver code
if __name__ == "__main__":
# Start timer
startTime = time.time()
# Function Call
fun()
# Stop timer
endTime = time.time()
# Calculating total time taken by the program
timeTaken = endTime - startTime
print(f"Time taken by program is: {timeTaken:.6f} sec")
C#
using System;
using System.Diagnostics;
class Program {
// Function whose time is to be measured
static void Fun()
{
// Initialize an empty string
string str = "";
// Concatenate the characters from 'a' to 'z'
for (int i = 0; i < 26; i++) {
char c = (char)('a' + i);
str += c;
}
}
// Driver Code
static void Main()
{
// Use Stopwatch for measuring time
Stopwatch stopwatch = new Stopwatch();
// Start timer
stopwatch.Start();
// Function Call
Fun();
// Stop timer
stopwatch.Stop();
// Calculating total time taken by the program
double timeTaken = stopwatch.Elapsed.TotalSeconds;
Console.WriteLine(
"Time taken by program is: {0:F6} sec",
timeTaken);
}
}
JavaScript
// Function whose time is to be measured
function fun() {
// Initialize an empty string
let str = '';
// concatenate the characters from 'a' to 'z'
for (let i = 0; i < 26; i++) {
let c = String.fromCharCode('a'.charCodeAt(0) + i);
str += c;
}
}
// Start timer
let startTime = new Date().getTime();
// Function Call
fun();
// Stop timer
let endTime = new Date().getTime();
// Calculating total time taken by the program
let timeTaken = (endTime - startTime) / 1000;
console.log(`Time taken by program is: ${timeTaken.toFixed(6)} sec`);
OutputTime taken by program is : 0.000490 sec
Example: Below is the program to demonstrate the performance of the + string concatenation method.
C++
// C++ program to calculate
// performance of +
#include <bits/stdc++.h>
#include <sys/time.h>
using namespace std;
// Function whose time is to
// be measured
void fun()
{
// Initialize a n empty string
string str = "";
// concatenate the characters
// from 'a' to 'z'
for (int i = 0; i < 26; i++) {
char c = 'a' + i;
str = str + c;
}
}
// Driver Code
int main()
{
// Use function gettimeofday()
// can get the time
struct timeval start, end;
// Start timer
gettimeofday(&start, NULL);
// unsync the I/O of C and C++.
ios_base::sync_with_stdio(false);
// Function Call
fun();
// Stop timer
gettimeofday(&end, NULL);
// Calculating total time taken
// by the program.
double time_taken;
time_taken = (end.tv_sec
- start.tv_sec)
* 1e6;
time_taken = (time_taken
+ (end.tv_usec
- start.tv_usec))
* 1e-6;
cout << "Time taken by program is : "
<< fixed
<< time_taken << setprecision(6);
cout << " sec" << endl;
return 0;
}
// this code is contributed by utkarsh
Java
import java.util.*;
public class PerformanceTest {
// Function whose time is to be measured
static void fun() {
// Initialize an empty StringBuilder
StringBuilder str = new StringBuilder();
// Concatenate the characters from 'a' to 'z'
for (int i = 0; i < 26; i++) {
char c = (char)('a' + i);
str.append(c);
}
}
// Driver Code
public static void main(String[] args) {
// Use System.currentTimeMillis() to get the time
long start = System.currentTimeMillis();
// Function Call
fun();
// Stop timer
long end = System.currentTimeMillis();
// Calculating total time taken by the program
double timeTaken = (end - start) / 1000.0;
System.out.printf("Time taken by program is: %.6f sec%n", timeTaken);
}
}
Python3
import time
def fun():
# Initialize an empty string
string = ""
# Concatenate the characters from 'a' to 'z'
for i in range(26):
c = chr(ord('a') + i)
string = string + c
# Driver Code
if __name__ == "__main__":
# Start timer
start_time = time.time()
# Function Call
fun()
# Stop timer
end_time = time.time()
# Calculating total time taken by the program.
time_taken = end_time - start_time
print("Time taken by program is : {:.6f} sec".format(time_taken))
# this code is contributed by utkarsh
C#
// C# program to calculate
// performance of +
using System;
using System.Diagnostics;
class GFG
{
// Function whose time is to
// be measured
static void Fun()
{
// Initialize an empty string
string str = "";
// concatenate the characters
// from 'a' to 'z'
for (int i = 0; i < 26; i++)
{
char c = (char)('a' + i);
str = str + c;
}
}
// Driver Code
static void Main(string[] args)
{
// Use Stopwatch to measure time
Stopwatch stopwatch = new Stopwatch();
// Start timer
stopwatch.Start();
// Function Call
Fun();
// Stop timer
stopwatch.Stop();
// Calculating total time taken
// by the program.
double time_taken = stopwatch.Elapsed.TotalSeconds;
Console.WriteLine("Time taken by program is : " + time_taken.ToString("F6") + " sec");
}
}
JavaScript
function fun() {
// Initialize an empty string
let str = "";
// Concatenate the characters from 'a' to 'z'
for (let i = 0; i < 26; i++) {
let c = String.fromCharCode('a'.charCodeAt(0) + i);
str = str + c;
}
}
// Start timer
console.time("Time taken by program is");
// Function call
fun();
// Stop timer
console.timeEnd("Time taken by program is");
//This code is contributed by Adarsh
OutputTime taken by program is : 0.000715 sec
S No. | Factor | += operator | + operator |
1 | Assignment | It appends a string at the end of the original string. | It appends a string at the end of the original string and then reassigns the modified string to the original string. |
2 | Overloaded functions | operator overloaded function used with strings is different from the += operator. | operator overloaded function used with strings is different from the + operator. |
3 | Number of strings concatenated | It can concatenate two strings at a time in a single statement. | Multiple strings can be concatenated using multiple addition (+) operators between the string. For example, str = str1 + str2 + str3 + ... + strn |
4 | Performance | This operator when used for the concatenation of strings gives better efficiency as compared to the addition(+) operator. This is because no reassignment of strings takes place in this case. | This operator when used for the concatenation is not as efficient as compared to the addition(+=) operator. This is because reassignment of strings takes place in this case. |
Similar Reads
Basics & Prerequisites
Data Structures
Array Data StructureIn this article, we introduce array, implementation in different popular languages, its basic operations and commonly seen problems / interview questions. An array stores items (in case of C/C++ and Java Primitive Arrays) or their references (in case of Python, JS, Java Non-Primitive) at contiguous
3 min read
String in Data StructureA string is a sequence of characters. The following facts make string an interesting data structure.Small set of elements. Unlike normal array, strings typically have smaller set of items. For example, lowercase English alphabet has only 26 characters. ASCII has only 256 characters.Strings are immut
2 min read
Hashing in Data StructureHashing is a technique used in data structures that efficiently stores and retrieves data in a way that allows for quick access. Hashing involves mapping data to a specific index in a hash table (an array of items) using a hash function. It enables fast retrieval of information based on its key. The
2 min read
Linked List Data StructureA linked list is a fundamental data structure in computer science. It mainly allows efficient insertion and deletion operations compared to arrays. Like arrays, it is also used to implement other data structures like stack, queue and deque. Hereâs the comparison of Linked List vs Arrays Linked List:
2 min read
Stack Data StructureA Stack is a linear data structure that follows a particular order in which the operations are performed. The order may be LIFO(Last In First Out) or FILO(First In Last Out). LIFO implies that the element that is inserted last, comes out first and FILO implies that the element that is inserted first
2 min read
Queue Data StructureA Queue Data Structure is a fundamental concept in computer science used for storing and managing data in a specific order. It follows the principle of "First in, First out" (FIFO), where the first element added to the queue is the first one to be removed. It is used as a buffer in computer systems
2 min read
Tree Data StructureTree Data Structure is a non-linear data structure in which a collection of elements known as nodes are connected to each other via edges such that there exists exactly one path between any two nodes. Types of TreeBinary Tree : Every node has at most two childrenTernary Tree : Every node has at most
4 min read
Graph Data StructureGraph Data Structure is a collection of nodes connected by edges. It's used to represent relationships between different entities. If you are looking for topic-wise list of problems on different topics like DFS, BFS, Topological Sort, Shortest Path, etc., please refer to Graph Algorithms. Basics of
3 min read
Trie Data StructureThe Trie data structure is a tree-like structure used for storing a dynamic set of strings. It allows for efficient retrieval and storage of keys, making it highly effective in handling large datasets. Trie supports operations such as insertion, search, deletion of keys, and prefix searches. In this
15+ min read
Algorithms
Searching AlgorithmsSearching algorithms are essential tools in computer science used to locate specific items within a collection of data. In this tutorial, we are mainly going to focus upon searching in an array. When we search an item in an array, there are two most common algorithms used based on the type of input
2 min read
Sorting AlgorithmsA Sorting Algorithm is used to rearrange a given array or list of elements in an order. For example, a given array [10, 20, 5, 2] becomes [2, 5, 10, 20] after sorting in increasing order and becomes [20, 10, 5, 2] after sorting in decreasing order. There exist different sorting algorithms for differ
3 min read
Introduction to RecursionThe process in which a function calls itself directly or indirectly is called recursion and the corresponding function is called a recursive function. A recursive algorithm takes one step toward solution and then recursively call itself to further move. The algorithm stops once we reach the solution
14 min read
Greedy AlgorithmsGreedy algorithms are a class of algorithms that make locally optimal choices at each step with the hope of finding a global optimum solution. At every step of the algorithm, we make a choice that looks the best at the moment. To make the choice, we sometimes sort the array so that we can always get
3 min read
Graph AlgorithmsGraph is a non-linear data structure like tree data structure. The limitation of tree is, it can only represent hierarchical data. For situations where nodes or vertices are randomly connected with each other other, we use Graph. Example situations where we use graph data structure are, a social net
3 min read
Dynamic Programming or DPDynamic Programming is an algorithmic technique with the following properties.It is mainly an optimization over plain recursion. Wherever we see a recursive solution that has repeated calls for the same inputs, we can optimize it using Dynamic Programming. The idea is to simply store the results of
3 min read
Bitwise AlgorithmsBitwise algorithms in Data Structures and Algorithms (DSA) involve manipulating individual bits of binary representations of numbers to perform operations efficiently. These algorithms utilize bitwise operators like AND, OR, XOR, NOT, Left Shift, and Right Shift.BasicsIntroduction to Bitwise Algorit
4 min read
Advanced
Segment TreeSegment Tree is a data structure that allows efficient querying and updating of intervals or segments of an array. It is particularly useful for problems involving range queries, such as finding the sum, minimum, maximum, or any other operation over a specific range of elements in an array. The tree
3 min read
Pattern SearchingPattern searching algorithms are essential tools in computer science and data processing. These algorithms are designed to efficiently find a particular pattern within a larger set of data. Patten SearchingImportant Pattern Searching Algorithms:Naive String Matching : A Simple Algorithm that works i
2 min read
GeometryGeometry is a branch of mathematics that studies the properties, measurements, and relationships of points, lines, angles, surfaces, and solids. From basic lines and angles to complex structures, it helps us understand the world around us.Geometry for Students and BeginnersThis section covers key br
2 min read
Interview Preparation
Practice Problem