## Test Case Generation | Set 5 (Generating random Sorted Arrays and Palindromes)

Generating Random Sorted Arrays We store the random array elements in an array and then sort it and print it. filter_none edit close play_arrow link… Read More »

- Practice for cracking any coding interview
- How to get rid of Java TLE problem
- How can one become good at Data structures and Algorithms easily?
- Burst Balloon to maximize coins
- Understanding The Coin Change Problem With Dynamic Programming
- Subset array sum by generating all the subsets
- Reach the numbers by making jumps of two given lengths
- Sum of similarities of string with all of its suffixes
- Make all numbers of an array equal
- Some useful C++ tricks for beginners in Competitive Programming
- Maximize the total profit of all the persons
- Find triplets in an array whose AND is maximum
- Check if a number is perfect square without finding square root
- Length of the longest Subarray with only Even Elements
- Sort the array of strings according to alphabetical order defined by another string
- Python in Competitive Programming
- Print matrix in snake pattern from the last column
- Sum of the first N Prime numbers
- How can competitive programming help you get a job?
- How to read Competitive Programming Questions?
- Check if it is possible to reach a number by making jumps of two given length
- Minimum changes required to make two arrays identical
- Number of array elements derivable from D after performing certain operations
- C++: Methods of code shortening in competitive programming
- Sum of the multiples of two numbers below N
- Number of quadrilaterals possible from the given points
- Minimum number of increasing subsequences
- Find two numbers whose divisors are given in a random order
- Minimum number of sets with numbers less than Y
- Smallest Pair Sum in an array

Generating Random Sorted Arrays We store the random array elements in an array and then sort it and print it. filter_none edit close play_arrow link… Read More »

Generating Random Directed Unweighted Graphs Since this is a graph, the test data generation plan doesn’t guarantee that a cycle gets formed or not. The… Read More »

Generating Random Unweighted Trees Since this is a tree, the test data generation plan is such that no cycle gets formed. The number of edges… Read More »

Set 1 (Random Numbers, Arrays and Matrices) Generating Random Characters filter_none edit close play_arrow link brightness_4 code // A C++ Program to generate test cases… Read More »

From C++11 onwards, some new and interesting algorithms are added in STL of C++. These algorithms operate on an array and are useful in saving… Read More »

The test cases are extremely important part of any “Software/Project Testing Process”. Hence this Set will be very important for all the aspiring software developers.… Read More »

We have been trying to organize content of geeksforgeeks. We added below pages for this purpose. Algorithms and Data Structures: Algorithms Data Structures Languages: C… Read More »

Most of the times, in competitive programming, there is a need to assign the variable, the maximum or minimum value that data type can hold,… Read More »

For all those who aspire to excel in competitive programming, only having a knowledge about containers of STL is of less use till one is… Read More »

Standard C library provides qsort function that can be used for sorting an array. Following is the prototype of qsort() function. // Sort an array… Read More »

Regular competitive programmers face common challenge when input is large and the task of reading such an input from stdin might prove to be a… Read More »

Using Java in competitive programming is not something many people would suggest just because of its slow input and output, and well indeed it is… Read More »

Many programming contest problems are somehow related Prime Numbers. Either we are required to check Prime Numbers, or we are asked to perform certain functions… Read More »

It is recommended to refer Interesting facts about Bitwise Operators as a prerequisite. 1. How to set a bit in the number ‘num’ : If… Read More »

The most common tools to save time in C/C++ are typedefs and macros. Unfortunately, these features are not available in many other languages like Java.… Read More »