Skip to content
geeksforgeeks
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Tutorials
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
  • Practice
    • Build your AI Agent
    • GfG 160
    • Problem of the Day
    • Practice Coding Problems
    • GfG SDE Sheet
  • Contests
    • Accenture Hackathon (Ending Soon!)
    • GfG Weekly [Rated Contest]
    • Job-A-Thon Hiring Challenge
    • All Contests and Events
  • DSA
  • Interview Problems on Graph
  • Practice Graph
  • MCQs on Graph
  • Graph Tutorial
  • Graph Representation
  • Graph Properties
  • Types of Graphs
  • Graph Applications
  • BFS on Graph
  • DFS on Graph
  • Graph VS Tree
  • Transpose Graph
  • Dijkstra's Algorithm
  • Minimum Spanning Tree
  • Prim’s Algorithm
  • Topological Sorting
  • Floyd Warshall Algorithm
  • Strongly Connected Components
  • Advantages & Disadvantages
Open In App
Next Article:
Tarjan's Algorithm to find Strongly Connected Components
Next article icon

Find if an array of strings can be chained to form a circle

Last Updated : 19 Apr, 2025
Comments
Improve
Suggest changes
Like Article
Like
Report
Try it on GfG Practice
redirect icon

Given an array of strings, the task is to find if the given strings can be chained to form a circle. A string X can be put before another string Y in circle if the last character of X is same as first character of Y.

Examples: 

Input: arr[] = [“geek”, “king”]
Output: Yes, the given strings can be chained.
Explanation: Note that the last character of first string is same
as first character of second string and vice versa is also true.

Input: arr[] = [“aaa”, “bbb”, “baa”, “aab”]
Output: Yes, the given strings can be chained.
Explanation: The strings can be chained as “aaa”, “aab”, “bbb” and “baa”

Input: arr[] = [“aaa”]
Output: Yes

Input: arr[] = [“aaa”, “bbb”]
Output: No

Approach:

The idea is to create a directed graph of all characters and then find if there is an eulerian circuit in the graph or not.  If there is an eulerian circuit, then chain can be formed, otherwise not. 

Note that a directed graph has eulerian circuit only if in degree and out degree of every vertex is same, and all non-zero degree vertices form a single strongly connected component.

We solve this problem by treating this as a graph problem, where vertices will be the first and last character of strings, and we will draw an edge between two vertices if they are the first and last character of the same string, so a number of edges in the graph will be same as the number of strings in the array.

Step by step approach:

  1. Create a directed graph where each node represents a letter (a-z) and edges connect first and last letters of words.
  2. For each string, add an edge from its first character to its last character.
  3. Check if the graph is strongly connected (can reach all nodes with non-zero degree from any node).
  4. Verify each node has equal in-degree and out-degree (necessary condition for Eulerian cycle).
  5. If both conditions are met, the strings can be chained in a circle.
C++
// C++ program to Find if an array of  // strings can be chained to form a circle  #include <iostream> #include <vector> using namespace std;  class Graph { private:     int V;                       vector<vector<int>> adj;       vector<int> in;                   // Function to do DFS starting from v     void dfsUtil(int v, vector<bool>& visited) {         visited[v] = true;         for (auto i = adj[v].begin(); i != adj[v].end(); ++i)             if (!visited[*i])                 dfsUtil(*i, visited);     }          // Check if all non-zero degree vertices are strongly connected     bool isStronglyConnected() {                  // Mark all vertices as not visited for first DFS         vector<bool> visited(V, false);                  // Find the first vertex with non-zero degree         int n;         for (n = 0; n < V; n++)             if (adj[n].size() > 0)                 break;                          // If no edges exist, return true         if (n == V)             return true;                  // Do DFS traversal starting from         // first non-zero degree vertex         dfsUtil(n, visited);                  // Check if all vertices with          // non-zero degrees are visited         for (int i = 0; i < V; i++)             if (adj[i].size() > 0 && !visited[i])                 return false;                  // Create a reversed graph         Graph gr(V);         for (int v = 0; v < V; v++) {             for (auto i = adj[v].begin(); i != adj[v].end(); ++i) {                 gr.adj[*i].push_back(v);                 (gr.in[v])++;             }         }                  // Mark all vertices as not visited for second DFS         fill(visited.begin(), visited.end(), false);                  // Do DFS for reversed graph starting from same vertex         gr.dfsUtil(n, visited);                  // Check if all vertices with non-zero         // degrees are visited in second DFS         for (int i = 0; i < V; i++)             if (adj[i].size() > 0 && !visited[i])                 return false;                          return true;     }      public:     Graph(int V) {         this->V = V;         adj.resize(V);         in.resize(V, 0);     }          // Function to add an edge to graph     void addEdge(int v, int w) {         adj[v].push_back(w);         in[w]++;     }          // Check if the directed graph has an Eulerian cycle     bool hasEulerianCycle() {                  // Check if all non-zero degree         // vertices are strongly connected         if (!isStronglyConnected())             return false;                  // Check if in-degree and out-degree          // of every vertex is the same         for (int i = 0; i < V; i++)             if (adj[i].size() != in[i])                 return false;                          return true;     } };  // Function to check if strings can be  // chained to form a circle bool isCircle(vector<string> &arr) {          // Create a graph with 26 vertices (a to z)     Graph g(26);          // Create an edge from first character      // to last character of every string.     for (string &s : arr) {         if (!s.empty()) {             g.addEdge(s[0] - 'a', s[s.length() - 1] - 'a');         }     }          // The strings can be chained if there     // is an Eulerian cycle in the graph     return g.hasEulerianCycle(); }  int main() {     vector<string> arr3 = {"ab" , "bc", "cd", "da"};     cout << (isCircle(arr3) ? "Yes" : "No");          return 0; } 
Java
// Java program to Find if an array of  // strings can be chained to form a circle  import java.util.*;  class Graph {     int V;     ArrayList<Integer>[] adj;     int[] in;      Graph(int V) {         this.V = V;         adj = new ArrayList[V];         in = new int[V];         for (int i = 0; i < V; i++) {             adj[i] = new ArrayList<>();         }     }      // Function to add an edge to graph     static void addEdge(Graph g, int v, int w) {         g.adj[v].add(w);         g.in[w]++;     }      // Function to do DFS starting from v     static void dfsUtil(Graph g, int v, boolean[] visited) {         visited[v] = true;         for (int i : g.adj[v]) {             if (!visited[i])                 dfsUtil(g, i, visited);         }     }      // Check if all non-zero degree vertices are strongly connected     static boolean isStronglyConnected(Graph g) {         boolean[] visited = new boolean[g.V];          int n;         for (n = 0; n < g.V; n++)             if (g.adj[n].size() > 0)                 break;          if (n == g.V)             return true;          dfsUtil(g, n, visited);          for (int i = 0; i < g.V; i++)             if (g.adj[i].size() > 0 && !visited[i])                 return false;          Graph gr = new Graph(g.V);         for (int v = 0; v < g.V; v++) {             for (int i : g.adj[v]) {                 gr.adj[i].add(v);                 gr.in[v]++;             }         }          Arrays.fill(visited, false);         dfsUtil(gr, n, visited);          for (int i = 0; i < g.V; i++)             if (g.adj[i].size() > 0 && !visited[i])                 return false;          return true;     }      // Check if the directed graph has an Eulerian cycle     static boolean hasEulerianCycle(Graph g) {         if (!isStronglyConnected(g))             return false;          for (int i = 0; i < g.V; i++)             if (g.adj[i].size() != g.in[i])                 return false;          return true;     } }  class GfG {      // Function to check if strings can be      // chained to form a circle     static int isCircle(String[] arr) {         Graph g = new Graph(26);          for (String s : arr) {             if (!s.isEmpty()) {                 Graph.addEdge(g, s.charAt(0) - 'a', s.charAt(s.length() - 1) - 'a');             }         }          return Graph.hasEulerianCycle(g)?1:0;     }      public static void main(String[] args) {         String[] arr3 = {"ab", "bc", "cd", "da"};         System.out.println(isCircle(arr3) == 1 ? "Yes" : "No");     } } 
Python
# Python program to Find if an array of  # strings can be chained to form a circle   # Function to check if strings can be  # chained to form a circle def isCircle(arr):          # Create a graph with 26 vertices (a to z)     g = Graph(26)          # Create an edge from first character      # to last character of every string.     for s in arr:         if s:             g.addEdge(ord(s[0]) - ord('a'), ord(s[-1]) - ord('a'))          # The strings can be chained if there     # is an Eulerian cycle in the graph     return 1 if g.hasEulerianCycle() else 0   class Graph:     def __init__(self, V):         self.V = V         self.adj = [[] for _ in range(V)]         self.inDegree = [0] * V      # Function to add an edge to graph     def addEdge(self, v, w):         self.adj[v].append(w)         self.inDegree[w] += 1      # Function to do DFS starting from v     def dfsUtil(self, v, visited):         visited[v] = True         for i in self.adj[v]:             if not visited[i]:                 self.dfsUtil(i, visited)      # Check if all non-zero degree vertices are strongly connected     def isStronglyConnected(self):         visited = [False] * self.V         n = 0         while n < self.V and not self.adj[n]:             n += 1         if n == self.V:             return True          self.dfsUtil(n, visited)         for i in range(self.V):             if self.adj[i] and not visited[i]:                 return False          gr = Graph(self.V)         for v in range(self.V):             for i in self.adj[v]:                 gr.adj[i].append(v)                 gr.inDegree[v] += 1          visited = [False] * self.V         gr.dfsUtil(n, visited)         for i in range(self.V):             if self.adj[i] and not visited[i]:                 return False          return True      # Check if the directed graph has an Eulerian cycle     def hasEulerianCycle(self):         if not self.isStronglyConnected():             return False         for i in range(self.V):             if len(self.adj[i]) != self.inDegree[i]:                 return False         return True   if __name__ == "__main__":     arr3 = ["ab", "bc", "cd", "da"]     print("Yes" if isCircle(arr3) == 1 else "No") 
C#
// C# program to Find if an array of  // strings can be chained to form a circle  using System; using System.Collections.Generic;  class Graph {     public int V;     public List<int>[] adj;     public int[] inDegree;      public Graph(int V) {         this.V = V;         adj = new List<int>[V];         for (int i = 0; i < V; i++)             adj[i] = new List<int>();         inDegree = new int[V];     }      public void addEdge(int v, int w) {         adj[v].Add(w);         inDegree[w]++;     }      public void dfsUtil(int v, bool[] visited) {         visited[v] = true;         foreach (int i in adj[v]) {             if (!visited[i])                 dfsUtil(i, visited);         }     }      public bool isStronglyConnected() {         bool[] visited = new bool[V];         int n = 0;         while (n < V && adj[n].Count == 0)             n++;         if (n == V)             return true;          dfsUtil(n, visited);         for (int i = 0; i < V; i++)             if (adj[i].Count > 0 && !visited[i])                 return false;          Graph gr = new Graph(V);         for (int v = 0; v < V; v++) {             foreach (int i in adj[v]) {                 gr.adj[i].Add(v);                 gr.inDegree[v]++;             }         }          visited = new bool[V];         gr.dfsUtil(n, visited);         for (int i = 0; i < V; i++)             if (adj[i].Count > 0 && !visited[i])                 return false;          return true;     }      public bool hasEulerianCycle() {         if (!isStronglyConnected())             return false;         for (int i = 0; i < V; i++)             if (adj[i].Count != inDegree[i])                 return false;         return true;     } }  class GfG {     static int isCircle(string[] arr) {         Graph g = new Graph(26);         foreach (string s in arr) {             if (s.Length > 0)                 g.addEdge(s[0] - 'a', s[s.Length - 1] - 'a');         }         return g.hasEulerianCycle() ? 1:0;     }      static void Main() {         string[] arr3 = { "ab", "bc", "cd", "da" };         Console.WriteLine(isCircle(arr3) == 1 ? "Yes" : "No");     } } 
JavaScript
// JavaScript program to Find if an array of  // strings can be chained to form a circle   class Graph {     constructor(V) {         this.V = V;         this.adj = Array.from({ length: V }, () => []);         this.in = new Array(V).fill(0);     }      // Function to add an edge to graph     addEdge(v, w) {         this.adj[v].push(w);         this.in[w]++;     }      // Function to do DFS starting from v     dfsUtil(v, visited) {         visited[v] = true;         for (let i of this.adj[v]) {             if (!visited[i]) {                 this.dfsUtil(i, visited);             }         }     }      // Check if all non-zero degree vertices are strongly connected     isStronglyConnected() {         let visited = new Array(this.V).fill(false);         let n = 0;         while (n < this.V && this.adj[n].length === 0)             n++;         if (n === this.V)             return true;          this.dfsUtil(n, visited);         for (let i = 0; i < this.V; i++) {             if (this.adj[i].length > 0 && !visited[i])                 return false;         }          let gr = new Graph(this.V);         for (let v = 0; v < this.V; v++) {             for (let i of this.adj[v]) {                 gr.adj[i].push(v);                 gr.in[v]++;             }         }          visited.fill(false);         gr.dfsUtil(n, visited);         for (let i = 0; i < this.V; i++) {             if (this.adj[i].length > 0 && !visited[i])                 return false;         }          return true;     }      // Check if the directed graph has an Eulerian cycle     hasEulerianCycle() {         if (!this.isStronglyConnected())             return false;         for (let i = 0; i < this.V; i++) {             if (this.adj[i].length !== this.in[i])                 return false;         }         return true;     } }  // Function to check if strings can be  // chained to form a circle function isCircle(arr) {     let g = new Graph(26);     for (let s of arr) {         if (s.length > 0) {             g.addEdge(s.charCodeAt(0) - 97, s.charCodeAt(s.length - 1) - 97);         }     }     return g.hasEulerianCycle()?1:0; }  let arr3 = ["ab", "bc", "cd", "da"]; console.log(isCircle(arr3) === 1 ? "Yes" : "No"); 

Output
Yes

Time Complexity: O(n)
Auxiliary space:  O(n)

Related Article:

  • Find if an array of strings can be chained to form a circle | Set 2 


Next Article
Tarjan's Algorithm to find Strongly Connected Components
author
kartik
Improve
Article Tags :
  • DSA
  • Graph
  • Strings
  • Accolite
  • Amazon
  • Euler-Circuit
  • FactSet
Practice Tags :
  • Accolite
  • Amazon
  • FactSet
  • Graph
  • Strings

Similar Reads

  • Graph Algorithms
    Graph algorithms are methods used to manipulate and analyze graphs, solving various range of problems like finding the shortest path, cycles detection. If you are looking for difficulty-wise list of problems, please refer to Graph Data Structure. BasicsGraph and its representationsBFS and DFS Breadt
    3 min read
  • Introduction to Graph Data Structure
    Graph Data Structure is a non-linear data structure consisting of vertices and edges. It is useful in fields such as social network analysis, recommendation systems, and computer networks. In the field of sports data science, graph data structure can be used to analyze and understand the dynamics of
    15+ min read
  • Graph and its representations
    A Graph is a non-linear data structure consisting of vertices and edges. The vertices are sometimes also referred to as nodes and the edges are lines or arcs that connect any two nodes in the graph. More formally a Graph is composed of a set of vertices( V ) and a set of edges( E ). The graph is den
    12 min read
  • Types of Graphs with Examples
    A graph is a mathematical structure that represents relationships between objects by connecting a set of points. It is used to establish a pairwise relationship between elements in a given set. graphs are widely used in discrete mathematics, computer science, and network theory to represent relation
    9 min read
  • Basic Properties of a Graph
    A Graph is a non-linear data structure consisting of nodes and edges. The nodes are sometimes also referred to as vertices and the edges are lines or arcs that connect any two nodes in the graph. The basic properties of a graph include: Vertices (nodes): The points where edges meet in a graph are kn
    4 min read
  • Applications, Advantages and Disadvantages of Graph
    Graph is a non-linear data structure that contains nodes (vertices) and edges. A graph is a collection of set of vertices and edges (formed by connecting two vertices). A graph is defined as G = {V, E} where V is the set of vertices and E is the set of edges. Graphs can be used to model a wide varie
    7 min read
  • Transpose graph
    Transpose of a directed graph G is another directed graph on the same set of vertices with all of the edges reversed compared to the orientation of the corresponding edges in G. That is, if G contains an edge (u, v) then the converse/transpose/reverse of G contains an edge (v, u) and vice versa. Giv
    9 min read
  • Difference Between Graph and Tree
    Graphs and trees are two fundamental data structures used in computer science to represent relationships between objects. While they share some similarities, they also have distinct differences that make them suitable for different applications. What is Graph?A graph data structure is a collection o
    2 min read
  • BFS and DFS on Graph

    • Breadth First Search or BFS for a Graph
      Given a undirected graph represented by an adjacency list adj, where each adj[i] represents the list of vertices connected to vertex i. Perform a Breadth First Search (BFS) traversal starting from vertex 0, visiting vertices from left to right according to the adjacency list, and return a list conta
      15+ min read

    • Depth First Search or DFS for a Graph
      In Depth First Search (or DFS) for a graph, we traverse all adjacent vertices one by one. When we traverse an adjacent vertex, we completely finish the traversal of all vertices reachable through that adjacent vertex. This is similar to a tree, where we first completely traverse the left subtree and
      13 min read

    • Applications, Advantages and Disadvantages of Depth First Search (DFS)
      Depth First Search is a widely used algorithm for traversing a graph. Here we have discussed some applications, advantages, and disadvantages of the algorithm. Applications of Depth First Search:1. Detecting cycle in a graph: A graph has a cycle if and only if we see a back edge during DFS. So we ca
      4 min read

    • Applications, Advantages and Disadvantages of Breadth First Search (BFS)
      We have earlier discussed Breadth First Traversal Algorithm for Graphs. Here in this article, we will see the applications, advantages, and disadvantages of the Breadth First Search. Applications of Breadth First Search: 1. Shortest Path and Minimum Spanning Tree for unweighted graph: In an unweight
      4 min read

    • Iterative Depth First Traversal of Graph
      Given a directed Graph, the task is to perform Depth First Search of the given graph. Note: Start DFS from node 0, and traverse the nodes in the same order as adjacency list. Note : There can be multiple DFS traversals of a graph according to the order in which we pick adjacent vertices. Here we pic
      10 min read

    • BFS for Disconnected Graph
      In the previous post, BFS only with a particular vertex is performed i.e. it is assumed that all vertices are reachable from the starting vertex. But in the case of a disconnected graph or any vertex that is unreachable from all vertex, the previous implementation will not give the desired output, s
      14 min read

    • Transitive Closure of a Graph using DFS
      Given a directed graph, find out if a vertex v is reachable from another vertex u for all vertex pairs (u, v) in the given graph. Here reachable means that there is a path from vertex u to v. The reach-ability matrix is called transitive closure of a graph. For example, consider below graph: Transit
      8 min read

    • Difference between BFS and DFS
      Breadth-First Search (BFS) and Depth-First Search (DFS) are two fundamental algorithms used for traversing or searching graphs and trees. This article covers the basic difference between Breadth-First Search and Depth-First Search. ParametersBFSDFSStands forBFS stands for Breadth First Search.DFS st
      2 min read

    Cycle in a Graph

    • Detect Cycle in a Directed Graph
      Given the number of vertices V and a list of directed edges, determine whether the graph contains a cycle or not. Examples: Input: V = 4, edges[][] = [[0, 1], [0, 2], [1, 2], [2, 0], [2, 3]] Output: trueExplanation: The diagram clearly shows a cycle 0 → 2 → 0 Input: V = 4, edges[][] = [[0, 1], [0, 2
      15+ min read

    • Detect cycle in an undirected graph
      Given an undirected graph, the task is to check if there is a cycle in the given graph. Examples: Input: V = 4, edges[][]= [[0, 1], [0, 2], [1, 2], [2, 3]] Output: trueExplanation: The diagram clearly shows a cycle 0 → 2 → 1 → 0 Input: V = 4, edges[][] = [[0, 1], [1, 2], [2, 3]] Output: falseExplana
      8 min read

    • Detect Cycle in a directed graph using colors
      Given a directed graph represented by the number of vertices V and a list of directed edges, determine whether the graph contains a cycle. Your task is to implement a function that accepts V (number of vertices) and edges (an array of directed edges where each edge is a pair [u, v]), and returns tru
      9 min read

    • Detect a negative cycle in a Graph | (Bellman Ford)
      Given a directed weighted graph, the task is to find whether the given graph contains any negative-weight cycle or not. Note: A negative-weight cycle is a cycle in a graph whose edges sum to a negative value. Example: Input: Output: No Input: Output: Yes Algorithm to Find Negative Cycle in a Directe
      15+ min read

    • Cycles of length n in an undirected and connected graph
      Given an undirected and connected graph and a number n, count the total number of simple cycles of length n in the graph. A simple cycle of length n is defined as a cycle that contains exactly n vertices and n edges. Note that for an undirected graph, each cycle should only be counted once, regardle
      10 min read

    • Detecting negative cycle using Floyd Warshall
      We are given a directed graph. We need compute whether the graph has negative cycle or not. A negative cycle is one in which the overall sum of the cycle comes negative. Negative weights are found in various applications of graphs. For example, instead of paying cost for a path, we may get some adva
      12 min read

    • Clone a Directed Acyclic Graph
      A directed acyclic graph (DAG) is a graph which doesn't contain a cycle and has directed edges. We are given a DAG, we need to clone it, i.e., create another graph that has copy of its vertices and edges connecting them. Examples: Input : 0 - - - > 1 - - - -> 4 | / \ ^ | / \ | | / \ | | / \ |
      12 min read

geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences