Tag: DSA
Your All-in-One Learning Portal. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.
- DSA with Python - Data Structures and AlgorithmsThis tutorial is a beginner-friendly guide for learning data structures and algorithms using Python. In this article, we will discuss the in-built data structur
- Trie Data StructureThe Trie data structure is used to store a set of keys represented as strings. It allows for efficient retrieval and storage of keys, making it highly effective
- Random Tree Generator Using Prüfer Sequence with ExamplesGiven an integer N, the task is to generate a random labelled tree of N node with (N - 1) edges without forming cycle.Note: The output generated below is random
- Print string after removing all (“10” or “01”) from the binary stringGiven a binary string str consisting of only 0's and 1's, the task is to print the string after removing the occurrences of "10" and "01" from the string one by
- Find the first N integers such that the sum of their digits is equal to 10Given an integer N, the task is to print first N integers whose sum of digits is 10.Examples:
- Left Rotation in Vectors in C++Left rotation of a vector means shifting all the elements of the vector to the left by a specified number of positions. The elements that are shifted out from t