All Medium Articles
The security of the RSA algorithm is based on the difficulty of factorizing very large numbers. The setup of an RSA cryptosystem involves the generation… Read More
Given a string consisting of the first N distinct alphabets, the task is to sort the string by using at most N/2 moves. Each move… Read More
A magician asks a person to select a card from a pack of 27 cards and return it back without showing it back to the… Read More
There are four knights on a 3 x 3 chessboard. The two white knights are at the two bottom corners, and the two black knights… Read More
Software Quality simply means to measure how well software is designed i.e. the quality of design, and how well software conforms to that design i.e.… Read More
The ExecutorService interface extends Executor by adding methods that help manage and control the execution of threads. It is defined in java.util.concurrent package. It defines… Read More
Learning to code is intimidating for beginners. You buy tons of learning resources. Books, online courses some free resources or lectures and the journey is… Read More
The gradient of a function simply means the rate of change of a function. We will use numdifftools to find Gradient of a function. Examples:… Read More
Range-based for loops is an upgraded version of for loops. It is quite similar to for loops which is use in Python. Range-based for loop… Read More
  For Software Engineer role: Round 1:  Online Coding Round (HackerRank) 3 Coding Questions in 1.5 hour time limit. Q1.  Given a binary string , find the… Read More
Given two integers N and K, the task is to find the number of binary strings of length N having an even number of 1’s… Read More
Given an array arr[] of integers of size N, the task is to find the products of all subarrays of the array.Examples:   Input: arr[] =… Read More
Given a string str of size N and an integer K, the task is to generate a string whose substrings of size K can be… Read More
Given two arrays A[] and B[] of N positive integers and a cost C. We can choose any one element from each index of the… Read More
In this layout, we will learn to add Slidr Library in android. This library is used to create attractive animation when user switch from one… Read More
Sometimes, while working with Python tuples, we can have a problem in which we need to perform Row-wise custom elements addition in Tuple matrix. This… Read More
Sometimes, while working with Python data, we can have problems in which we need to convert Python Nested lists to single values tuples. This kind… Read More
readLines() function in R Language reads text lines from an input file. The readLines() function is perfect for text files since it reads the text… Read More
Given an array of integers, we need to print k most frequent elements. If there is a tie, we need to prefer the elements whose… Read More
Given an integer matrix mat [ ][ ] dimensions, the task is to find the largest possible square matrix from the given matrix with maximum… Read More