## Fast I/O in Java in Competitive Programming

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 »

- Sort an array without changing position of negative numbers
- Nth number whose sum of digit is multiple of 10
- Find maximum xor of k elements in an array
- What is Competitive Programming and How to Prepare for It?
- Find minimum difference between any two elements | Set 2
- Why Should I Learn Coding?
- Check whether two strings contain same characters in same order
- Total number of possible Binary Search Trees using Catalan Number
- Maximize the happiness of the groups on the Trip
- Lexicographically Smallest Topological Ordering
- Find the number of pair of Ideal nodes in a given tree
- Find the minimum number of elements that should be removed to make an array good
- Sum of digits with even number of 1's in their binary representation
- Count of all possible values of X such that A % X = B
- Equal Sum and XOR of three Numbers
- Check which player visits more number of Nodes
- Find the Nth Mosaic number
- Count of integers in a range which have even number of odd digits and odd number of even digits
- Optimally accommodate 0s and 1s from a Binary String into K buckets
- Longest string in an array which matches with prefix of the given string
- Make the list non-decreasing by changing only one digit of the elements
- Generate elements of the array following given conditions
- Check whether a subsequence exists with sum equal to k if arr[i]> 2*arr[i-1]
- Find the time which is palindromic and comes after the given time
- Find two vertices of an isosceles triangle in which there is rectangle with opposite corners (0, 0) and (X, Y)
- Print the path between any two nodes of a tree | DFS
- Convert an unbalanced bracket sequence to a balanced sequence
- Nth XOR Fibonacci number
- Write a function to get the intersection point of two Linked Lists | Set 2
- Count common elements in two arrays containing multiples of N and M

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 »

getchar_unlocked() is similar to getchar() with the exception that it is not thread safe. Below is an example code. filter_none edit close play_arrow link brightness_4… Read More »

This article helps to all those who want to begin with Competitive Programming. The only prerequisite one need is the knowledge of a programming language.… Read More »

Generating test cases for array programs can be a cumbersome process. But the generate and generate_n functions in the STL (Standard Template Library), come handy… Read More »

In competitive programming, it is important to read input as fast as possible so we save valuable time. You must have seen various problem statements… Read More »

Programming is the process of developing and implementing sets of instructions to enable a computer to do a certain task.The programming contests like ACM… Read More »

This is a question asked quite often as in which language should be preferred to be efficient in competitive programming. It is something one should… Read More »

This is one of the most used techniques in competitive programming. Let us first consider below simple question. What is the minimum time complexity to… Read More »

This article is a collection of various tips that would help beginners of Competitive programming to get an insight of things that should or shouldn’t… Read More »

There are many people for whom programming is like a haunted dream. Programming is nothing but an art of talking with machines and telling… Read More »

At the very beginning to competitive programming, barely anyone knows the coding style to be followed. Below is an example to help you understand how… Read More »

In this post “Important top 10 algorithms and data structures for competitive coding “. Topics : Graph algorithms Dynamic programming Searching and Sorting: Number theory… Read More »