Web Technologies
37.4K+ articles
Misc
8.8K+ articles
Mathematical
7.8K+ articles
Arrays
6.5K+ articles
Competitive Programming
3.3K+ articles
Strings
3.3K+ articles
Greedy
2.1K+ articles
Algorithms
2.0K+ articles
Sorting
1.8K+ articles
Searching
1.7K+ articles
Generating Random Unweighted Binary Tree:Since this is a tree, the test data generation plan is such that no cycle gets formed.The number of edges is one less than the num...
read more
Tree
Queue
Algorithms
Randomized
C++
C++ Quiz
DSA
Binary Tree
BFS
cpp-queue
cpp-map
cpp-random
Given two integers N and K, where N represents the total number of cards present when game begins and K denotes the maximum number of cards that can be removed in a single...
read more
Greedy
Mathematical
Randomized
Game Theory
DSA
Given an integer N. A number guessing game is a simple guessing game where a user is supposed to guess a number between 0 and N in a maximum of 10 attempts. The game will ...
read more
Randomized
Technical Scripter
C Programs
C Language
Technical Scripter 2020
DSA
Numbers
Given a positive integer N, the task is to generate a random binary string of length N.Examples:Input: N = 7Output: 1000001Input: N = 5Output: 01001Approach: The given pro...
read more
Strings
Mathematical
Randomized
Competitive Programming
C++ Programs
C++
DSA
binary-string
cpp-random
There are many ways of classifying algorithms and a few of them are shown below:Implementation MethodDesign MethodOther ClassificationsClassification by Implementation Met...
read more
Bit Magic
Algorithms
Analysis of Algorithms
Dynamic Programming
Greedy
Backtracking
Pattern Searching
Divide and Conquer
Searching
Sorting
Mathematical
Geometric
Randomized
Combinatorial
Advanced Data Structure
Branch and Bound
Game Theory
Recursion
Data Structures
DSA Quiz
DSA
Given two integers N and K representing number of trials and number of total threads in parallel processing. The task is to find the estimated value of PI using the Monte ...
read more
Mathematical
Randomized
C Programs
Operating Systems
DSA
Given two integers N and M, the task is to generate any N * M sized maze containing only 0 (representing a wall) and 1 (representing an empty space where one can move) wit...
read more
Graph
Randomized
DSA
A Disjoint set union is an algorithm that is used to manage a collection of disjoint sets. A disjoint set is a set in which the elements are not in any other set. Also, kn...
read more
Randomized
Technical Scripter
Picked
Technical Scripter 2022
DSA
disjoint-set
Given a singly linked list, select a random node from the linked list (the probability of picking a node should be 1/N if there are N nodes in the list). You are given a r...
read more
Linked List
Randomized
C++ Programs
DSA
Given a singly linked list, select a random node from the linked list (the probability of picking a node should be 1/N if there are N nodes in the list). You are given a r...
read more
Linked List
Randomized
C Programs
DSA
Given a singly linked list, select a random node from the linked list (the probability of picking a node should be 1/N if there are N nodes in the list). You are given a r...
read more
Linked List
Randomized
Java Programs
DSA
Given a singly linked list, select a random node from the linked list (the probability of picking a node should be 1/N if there are N nodes in the list). You are given a r...
read more
Linked List
Randomized
Python Programs
DSA
Given a singly linked list, select a random node from the linked list (the probability of picking a node should be 1/N if there are N nodes in the list). You are given a r...
read more
Linked List
Randomized
JavaScript
Web Technologies
DSA
Randomized algorithms in data structures and algorithms (DSA) are algorithms that use randomness in their computations to achieve a desired outcome. These algorithms intro...
read more
Algorithms
Randomized
DSA
Randomized algorithms are algorithms that use randomness as part of their logic to achieve efficiency and simplicity in solving computational problems. Unlike deterministi...
read more
Algorithms
Randomized
Picked
DSA
Python-DSA
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
Got It !