- C# | Operator Overloading
- C# | Method Overloading
- C# | Generics - Introduction
- C# | Array IndexOutofRange Exception
- C# | Sealed Class
- C# | Math.Tanh() Method
- C# | Math.Sinh() Method
- C# | Math.Cosh() Method
- Secondary Memory
- Understanding file sizes | Bytes, KB, MB, GB, TB, PB, EB, ZB, YB
- Python Dictionary | setdefault() method
- Python Dictionary | update() method
- Python Dictionary | items() method
- Python Dictionary | keys() method
- Python | Dictionary has_key()
- Python | String upper()
- Python | String lower()
- Python | String rstrip()
- Python | String translate()
- Perl | abs() function
- Perl | atan2() Function
- Perl | cos() Function
- Perl | sin() Function
- Perl | Modules
- Perl | File Test Operators
- Perl | Breakpoints of a Debugger

- Write a program to reverse digits of a number
- Program to find whether a no is power of two
- Number of ways to cut a stick of length N into K pieces
- Majority Element
- Detect loop in a linked list
- Largest Sum Contiguous Subarray
- Convert a Binary Tree into its Mirror Tree
- Count set bits in an integer
- Given a linked list which is sorted, how will you insert in sorted way
- Check sum of Covered and Uncovered nodes of Binary Tree
- Data Structures and Algorithms | Set 2
- Find the two non-repeating elements in an array of repeating elements
- Compute the integer absolute value (abs) without branching
- Leaders in an array
- Count Inversions in an array | Set 1 (Using Merge Sort)
- Two elements whose sum is closest to zero
- Check for Children Sum Property in a Binary Tree
- Convert an arbitrary Binary Tree to a tree that holds Children Sum Property
- Storage for Strings in C
- Inorder Tree Traversal without recursion and without stack!
- Maximum difference between two elements such that larger element appears after the smaller number
- Pairwise swap elements of a given linked list
- What are the operators that can be and cannot be overloaded in C++?
- Equilibrium index of an array
- Write you own Power without using multiplication(*) and division(/) operators
- Identical Linked Lists
- Reverse a Linked List in groups of given size | Set 1
- Next Greater Element
- Output of C++ Program | Set 1
- Find the Minimum length Unsorted Subarray, sorting which makes the complete array sorted
- Sorted order printing of a given array that represents a BST
- Find duplicates in O(n) time and O(1) extra space | Set 1
- Program for Fibonacci numbers
- Get Level of a node in a Binary Tree
- Find k-th smallest element in BST (Order Statistics in BST)
- Search in a row wise and column wise sorted matrix
- Find the repeating and the missing | Added 3 new methods
- Naive algorithm for Pattern Searching
- Given an array arr[], find the maximum j - i such that arr[j] > arr[i]
- Smallest of three integers without comparison operators
- A Boolean Matrix Question
- Matrix Chain Multiplication | DP-8
- Practice Questions for Recursion | Set 7
- Print all sequences of given length
- Analysis of Algorithms | Set 2 (Worst, Average and Best Cases)
- Sorted Linked List to Balanced BST
- Josephus problem | Set 1 (A O(n) Solution)
- Coin Change | DP-7
- Binomial Coefficient | DP-9
- Activity Selection Problem | Greedy Algo-1
- Egg Dropping Puzzle | DP-11
- Longest Palindromic Subsequence | DP-12
- To find sum of two numbers without using any operator
- Count numbers that don't contain 3
- Find four elements that sum to a given value | Set 1 (n^3 solution)
- Check whether a given Binary Tree is Complete or not | Set 1 (Iterative Solution)
- Given a number, find the next smallest palindrome
- Boundary Traversal of binary tree
- Make a fair coin from a biased coin
- Lexicographic rank of a string
- Pascal's Triangle
- Binary representation of a given number
- Check if a number is Palindrome
- Minimum insertions to form a palindrome | DP-28
- Find all possible interpretations of an array of digits
- Iterative Method to find Height of Binary Tree
- Design a stack with operations on middle element
- Convex Hull | Set 2 (Graham Scan)
- Count digits in given number N which divide N
- Find depth of the deepest odd level leaf node
- Check if all leaves are at same level
- Remove all nodes which don't lie in any path with sum>= k
- Count all possible paths from top left to bottom right of a mXn matrix
- Find the element before which all the elements are smaller than it, and after which all are greater
- Count all possible groups of size 2 or 3 that have sum as multiple of 3
- Remove minimum elements from either side such that 2*min becomes more than max
- Program for nth Catalan Number
- Count Possible Decodings of a given Digit Sequence
- Check if two nodes are cousins in a Binary Tree
- Shortest path with exactly k edges in a directed and weighted graph
- Print squares of first n natural numbers without using *, / and -
- How to check if two given sets are disjoint?
- Longest Even Length Substring such that Sum of First and Second Half is same
- Given a matrix of 'O' and 'X', find the largest subsquare surrounded by 'X'
- Given a binary string, count number of substrings that start and end with 1.
- Greedy Algorithm for Egyptian Fraction
- Find a common element in all rows of a given row-wise sorted matrix
- How to handle duplicates in Binary Search Tree?
- Converting Decimal Number lying between 1 to 3999 to Roman Numerals
- Sort an almost sorted array where only two elements are swapped
- How to design a tiny URL or URL shortener?
- Shortest Common Supersequence
- Count of n digit numbers whose sum of digits equals to given sum
- How to check if a given array represents a Binary Heap?
- Count number of ways to partition a set into k subsets
- Find Minimum Depth of a Binary Tree
- Print cousins of a given node in Binary Tree
- Succinct Encoding of Binary Tree
- Check if a given Binary Tree is Heap
- Reorder an array according to given indexes
- Gaussian Elimination to Solve Linear Equations
- Longest Span with same Sum in two Binary arrays
- Beginning BootStrap (Part-1) | Introduction and Installation
- Check whether given degrees of vertices represent a Graph or Tree
- Construct a Binary Search Tree from given postorder
- 8 puzzle Problem using Branch And Bound
- Absolute distinct count in a sorted array
- Pair with given product | Set 1 (Find if any pair exists)
- Clone() method in Java
- Printing Longest Common Subsequence | Set 2 (Printing All)
- Program to convert a given number to words | Set 2
- Partial Functions in Python
- Two Dimensional Binary Indexed Tree or Fenwick Tree
- Program to find last digit of n'th Fibonnaci Number
- Maximum sum of i*arr[i] among all rotations of a given array
- Floor in a Sorted Array
- Reverse an array in groups of given size
- Find number of times a string occurs as a subsequence in given string
- Count distinct occurrences as a subsequence
- How JVM Works - JVM Architecture?
- Length of Longest sub-string that can be removed
- Count all sorted rows in a matrix
- Number of permutation with K inversions
- Nearest 1 in a binary matrix
- Path with maximum average value
- Image Processing in Java | Set 6 (Colored image to Sepia image conversion)
- Count characters at same position as in English alphabet
- Convert a Binary Tree to Threaded binary tree | Set 2 (Efficient)
- Methods in Java
- Minimum Cost Path with Left, Right, Bottom and Up moves allowed
- Regex Boundary Matchers in Java
- Count pairs whose products exist in array
- Introduction to Apache Maven | A build automation tool for Java projects
- Find perimeter of shapes formed with 1s in binary matrix
- Number of palindromic paths in a matrix
- Number of full binary trees such that each node is product of its children
- Compare two integers without using any Comparison operator
- Count natural numbers whose all permutation are greater than that number
- Sort an array when two halves are sorted
- Program for Perrin numbers
- Longest prefix that contains same number of X and Y in an array
- Sum of product of x and y such that floor(n/x) = y
- Make two sets disjoint by removing minimum elements
- Boggle | Set 2 (Using Trie)
- Sum of matrix element where each elements is integer division of row and column
- Distance of nearest cell having 1 in a binary matrix
- Check if reversing a sub array make the array sorted
- Rearrange an array in maximum minimum form | Set 2 (O(1) extra space)
- Nearest element with at-least one common prime factor
- Count passing car pairs
- N'th palindrome of K digits
- Number of decisions to reach destination
- Number Theory | Generators of finite cyclic group under addition
- Count substrings with same first and last characters
- Search, insert and delete in an unsorted array
- Method Overloading with Autoboxing and Widening in Java
- Multiples of 3 and 5 without using % operator
- Multiply large integers under large modulo
- Find maximum (or minimum) in Binary Tree
- HeapSort
- How to sort an array of dates in C/C++?
- Program to check if a given year is leap year
- Program to multiply two matrices
- Program to find transpose of a matrix
- Overloading Subscript or array index operator [] in C++
- Perfect Number
- Check if two numbers are equal without using arithmetic and comparison operators
- Check if a sorted array can be divided in pairs whose sum is k
- Find Length of a Linked List (Iterative and Recursive)
- C | Data Types | Question 8
- Query Optimization
- Reverse digits of an integer with overflow handled
- Given level order traversal of a Binary Tree, check if the Tree is a Min-Heap
- Find Excel column number from column title
- Reset a lost Linux administrative password and Explanation
- All possible strings of any length that can be formed from a given string
- Singleton Design Pattern | Introduction
- Switch Statement in Java
- Largest BST in a Binary Tree | Set 2
- Generate all rotations of a given string
- Javax.servlet.http.Cookie class in Java
- How cookies are used in a website?
- Lifecycle and States of a Thread in Java
- Flow control in try catch finally in Java
- Reverse an array without using subtract sign ‘-‘ anywhere in the code
- Check if a large number is divisible by 25 or not
- Print common characters of two Strings in alphabetical order
- An efficient way to check whether n-th Fibonacci number is multiple of 10
- How to run java class file which is in different directory?
- Print array of strings in sorted order without copying one string into another
- How GPS works?
- Java.util.Random class in Java
- Java.util.Timer Class in Java
- Maximum number of Zombie process a system can handle
- mindepth and maxdepth in Linux find() command for limiting search to a specific directory.
- Number of times the largest perfect square number can be subtracted from N
- Square root of a number using log
- Program to count vowels in a string (Iterative and Recursive)
- Sum of divisors of factorial of a number
- Sum of product of all pairs of array elements
- Oracle Interview Experience | Set 47 (On-Campus)
- Find Index of 0 to be replaced with 1 to get longest continuous sequence of 1s in a binary array | Set-2
- Slope of the line parallel to the line with the given slope
- Recursive Programs to find Minimum and Maximum elements of array
- Bitmasking and Dynamic Programming | Set-2 (TSP)
- Remove one bit from a binary number to get maximum value
- Find a pair of elements swapping which makes sum of two arrays same
- Check if an array represents Inorder of Binary Search tree or not
- pipe() System call
- Maximum product of subsequence of size k
- Count quadruples from four sorted arrays whose sum is equal to a given value x
- Program for Stirling Interpolation Formula
- std::basic_string::max_size in C++
- Finding power of prime number p in n!
- Project Idea | Airport Security Using Beacon
- Master Theorem For Subtract and Conquer Recurrences
- LocalDate plusDays() Method in Java with Examples
- Number of times a number can be replaced by the sum of its digits until it only contains one digit
- Find numbers of balancing positions in string
- Find repeated character present first in a string
- C# | Substring() Method
- Print triplets with sum less than or equal to k
- Check if a string is Pangrammatic Lipogram
- Puzzle | (When will the sheep be safe )
- Puzzle | (Crack The Plan)
- Number of N digit integers with weight W
- Amazon Interview Experience | Set 367 (On-Campus for Internship)
- std::find_end in C++
- Input Iterators in C++
- Forward Iterators in C++
- Binomial Random Variables
- Output Iterators in C++
- Bidirectional Iterators in C++
- Chain of Responsibility Design Pattern
- Citrix Interview Experience | Set 5 (On-Campus)
- GE Interview Experience | Set 5 (On-Campus for GE Digital)
- Project Idea | Assist Bot
- Project Idea | God's Eye
- Oracle Interview Experience | Set 46 (On-Campus)
- Calculate number of nodes between two vertices in an acyclic Graph by Disjoint Union method
- Veritas Interview Experience | Set 2 ( On Campus )
- Goldman Sachs Interview Experience | Set 25 (On-Campus for Internship)
- Output of C programs | Set 36
- Output of C programs | Set 38
- Project Idea | Sign Language Translator for Speech-Impaired
- Lexicographic rank of a string using STL
- Creating animations using Transformations in OpenGL
- Remove minimum number of elements such that no common element exist in both array
- Oracle Interview Experience | Set 57 (On-Campus for FTE)
- Shortest distance between two nodes in BST
- American Express Interview Experience | Set 2
- Cisco Interview Experience | Set 19 (For IT Engineer Profile)
- Amazon interview experience | Set 384 (On-Campus for FTE)
- Evaluate a boolean expression represented as string
- Java.util.Arrays.parallelPrefix in Java 8
- Teradata Interview Experience | Set 7 (On-Campus)
- Amazon Interview Experience | Set 387 (On -Campus for Full Time)
- Amazon Interview Experience | Set 388 (On -Campus for Full Time)
- Front Controller Design Pattern
- Sum of all even numbers in range L and R
- Maximise the size of consecutive element subsets in an array
- Xoriant Interview Experience | Set 2 (On- Campus)
- Sort first half in ascending and second half in descending order | 1
- Find the n-th number whose binary representation is a palindrome
- Sets in JavaScript
- Count number of paths whose weight is exactly X and has at-least one edge of weight M
- Binary array after M range toggle operations
- Program to check if three points are collinear
- GwynnieBee Interview Experience (Full Time)
- Amazon Interview Experience | 399 (On Campus for full time)
- Maximum number of unique prime factors
- Total number of divisors for a given number
- Factset Interview Experience | Set 12 (On-Campus)
- Qualcomm Interview Experience | Set 15 (On-Campus)
- Sort an array according to absolute difference with a given value "using constant extra space"
- ServiceNow Interview Experience | Set 4 (On-Campus)
- Implementation of Graph in JavaScript
- Count all triplets whose sum is equal to a perfect cube
- Basic Network Attacks
- Smallest index such that there are no 0 or 1 to its right
- Positive elements at even and negative at odd positions (Relative order not maintained)
- Operating System | Program for Next Fit algorithm in Memory Management
- iscntrl() in C++ and its application to find control characters
- Map in JavaScript
- Find if two people ever meet after same number of jumps
- OYO Interview Experience | Set 10 (On-campus for SDE)
- Puzzle | Farmer, Goat, Wolf and Cabbage
- Find most significant set bit of a number
- Check if a graphs has a cycle of odd length
- OYO Interview Experience | Set 11 (For 2 years experienced)
- Goldman Sachs Interview Experience | Set 33 (For Experienced)
- Program to find sum of first n natural numbers
- Composite Number
- Program to find if a character is vowel or Consonant
- Templates in C++ vs Generics in Java
- Head command in Linux with examples
- Puzzle | River Crossing
- Wipro Interview Experience | Set 10 (On-Campus)
- Mobile Search Engine Optimization (SEO)
- Two interfaces with same methods having same signature but different return types
- Bootstrap (Part-9) | Tooltips
- Computer Network | Efficiency of CSMA/CD
- Largest K digit number divisible by X
- Amazon Interview Experience | Set 404 (On-Campus Internship)
- Smallest K digit number divisible by X
- Sabre Interview Experience (On Campus for Associate Software Developer)
- GS Lab interview Experience | Set 3
- Maximum points from top left of matrix to bottom right and return back
- To check whether a large number is divisible by 7
- Supervised and Unsupervised learning
- Program to count digits in an integer (4 Different Methods)
- Given a n-ary tree, count number of nodes which have more number of children than parents
- Promact Infotech Pvt. Ltd. Interview Experience
- Computer Network | Collision Domain and Broadcast Domain
- K-th Largest Sum Contiguous Subarray
- Number of compositions of a natural number
- Check if number is palindrome or not in Octal
- Queries on probability of even or odd number in given ranges
- Vampire Number
- Smallest integer with digit sum M and multiple of N
- Maximize value of (a[i]+i)*(a[j]+j) in an array
- Lexicographically smallest string whose hamming distance from given string is exactly K
- Smallest x such that 1*n, 2*n, ... x*n have all digits from 1 to 9
- Simplify the directory path (Unix like)
- Sopra Steria Interview Experience
- Next Greater Frequency Element
- Index Mapping (or Trivial Hashing) with negatives allowed
- Check if a large number is divisibility by 15
- Print words of a string in reverse order
- Implementing Photomosaics
- Smallest Derangement of Sequence
- Check whether the given array is perfect or not
- Sorting using trivial hash function
- Frequency of a substring in a string
- Underscore.js | pluck() with Examples
- Cyclic Redundancy Check in Python
- Minimum cost to make Longest Common Subsequence of length k
- Check for integer overflow on multiplication
- Variation in Nim Game
- PHP | Date and Time
- Asynchronous and Synchronous Callbacks in Java
- Addition and Subtraction of Matrix using pthreads
- Verification in Java (JVM)
- Sexy Prime
- Find first and last digits of a number
- Python | Maximum and minimum element's position in a list
- Encrypt string with product of number of vowels and consonants in substring of size k
- Add given n time durations
- Program to print right and left arrow patterns
- Digital logic | Shift Registers
- Program for triangular patterns of alphabets
- Digital Electronics | Analog to digital conversion
- Communication between Parent and Child process using pipe in Python
- OYO Interview Experience | Set 4 (For 5+ Experienced)
- Parallel Array
- Snake case of a given sentence
- Program for Stair Case Patterns
- ArrayBlockingQueue add() method in Java
- Program to calculate area of a Tetrahedron
- Area of the biggest possible rhombus that can be inscribed in a rectangle
- BigInteger abs() Method in Java
- PHP | Get PHP configuration information using phpinfo()
- Executable Comments in Java
- Theory of computation | Decidable and undecidable problems
- Count the number of non-reachable nodes
- Encryption vs Encoding vs Hashing
- PHP | Merging two or more arrays using array_merge()
- Covert string X to an anagram of string Y with minimum replacements
- OYO Rooms Interview Experience | Set 6
- Freeware v/s Shareware
- GATE | GATE CS Mock 2018 | Set 2 | Question 45
- Hour-glass Pattern
- Rearrange a linked list in to alternate first and last element
- Program to print non square numbers
- Mediator Design Pattern
- Program to print the arrow pattern
- Garbage Collection in Python
- JavaScript | Math.hypot( ) Function
- ADP Recruitment Experience | Set 3 (On Campus for Member Technical)
- PHP | array_unshift() Function
- Sorting array with conditional swapping
- Divide two integers without using multiplication, division and mod operator
- Find the slope of the given number
- Python | tuple() Function
- Count special palindromes in a String
- Sort 1 to N by swapping adjacent elements
- Divide a big number into two parts that differ by k
- Count ordered pairs of positive numbers such that their sum is S and XOR is K
- JavaScript | Math.E() function
- Program to find Nth term in the given Series
- Collections max() method in Java with Examples
- JavaScript | Math.tanh() function
- JavaScript | Math.sinh() function
- Invert actual bits of a number
- PHP | array_replace_recursive() Function
- Rank of an element in a stream
- Goldman Sachs Interview Experience | Set 40
- Smallest even digits number not less than N
- Reverse Diagonal elements of matrix
- JavaScript | date.getHours() Function
- Largest subset with maximum difference as 1
- Number of subarrays with m odd numbers
- JavaScript | arrayBuffer.byteLength property
- Amortized analysis for increment in counter
- JavaScript | date.getDay() method
- Computer Network | RC4 Encryption Algorithm
- Java String concat() with examples
- Sum of product of each element with each element after it
- Java | Current date and time
- Maximum Product Subarray | Added negative product case
- Cube Free Numbers smaller than n
- Finding a Non Transitive Coprime Triplet in a Range
- Euler's Four Square Identity
- Check if characters of one string can be swapped to form other
- Check if number can be displayed using seven segment led
- Sum of the series 2^0 + 2^1 + 2^2 +.....+ 2^n
- Find duplicate in an array in O(n) and by using O(1) extra space
- Making zero array by decrementing pairs of adjacent
- Count elements which divide all numbers in range L-R
- Cost to Balance the parentheses
- Maximum product subset of an array
- ML | Types of Learning – Supervised Learning
- Check if every index i has an index j such that sum of elements in both directions are equal
- Decision Making in PL/SQL (if-then , if-then-else, Nested if-then, if-then-elsif-then-else )
- Program to print the hollow numerical parallelogram
- Comments in C#
- CouponDunia Recruitment Process
- Check for balanced parentheses in an expression | O(1) space
- PHP | array_uintersect_assoc() Function
- Number of circular tours that visit all petrol pumps
- Check if a number can be expressed as a^b | Set 2
- Two odd occurring elements in an array where all other occur even times
- Word Wrap problem ( Space optimized solution )
- Minimum swaps so that binary search can be applied
- Maximum product quadruple (sub-sequence of size 4) in array
- Largest gap in an array
- Highest power of two that divides a given number
- Python | Simple registration form using Tkinter
- PHP | fputs( ) Function
- C# | Methods
- Java Swing | BevelBorder and SoftBevelBorder
- Represent the fraction of two numbers in the string format
- First X vowels from a string
- C# | Replace() Method
- Print all triplets with given sum
- Duplicates in an array in O(n) time and by using O(1) extra space | Set-3
- Find unique pairs such that each element is less than or equal to N
- Different ways to represent N as sum of K non-zero integers
- Perl | Arrays
- Puzzle | Minimum distance for Lizard
- Count the number of intervals in which a given value lies
- Find Largest Special Prime which is less than or equal to a given number
- PHP | mysqli_close() Function
- Perl | Hashes
- Count number of triplets in an array having sum in the range [a, b]
- PHP | IntlChar::isblank() Function
- Area of the Largest Triangle inscribed in a Hexagon
- Reduce string to shortest length by deleting a pair of same adjacent characters
- Replace every element with the greatest element on its left side
- Sort an array where a subarray of a sorted array is in reverse order
- Check if any permutation of a large number is divisible by 8
- Shortest path on a Square
- Count number of triplets with product equal to given number with duplicates allowed | Set-2
- JavaFX | Arc with examples
- Edit distance and LCS (Longest Common Subsequence)
- Egg Dropping Puzzle with 2 Eggs and K Floors
- Find index of first occurrence when an unsorted array is sorted
- String transformation using XOR and OR
- Perpendicular distance between a point and a Line in 2 D
- Interview Rejections - How to handle?
- Count substrings that starts with character X and ends with character Y
- Distance between a point and a Plane in 3 D
- Array Manipulation and Sum
- Sort 3 numbers
- Haversine formula to find distance between two points on a sphere
- Maximum bishops that can be placed on N*N chessboard
- Find the only missing number in a sorted array
- Angle between two Planes in 3D
- Find the multiple of x which is closest to a^b
- Sum of all prime divisors of all the numbers in range L-R
- Print the corner elements and their sum in a 2-D matrix
- Number of elements smaller than root using preorder traversal of a BST
- Probability that the pieces of a broken stick form a n sided polygon
- Maximum power of jump required to reach the end of string
- Distance between two parallel Planes in 3-D
- Find gcd(a^n, c) where a, n and c can vary from 1 to 10^9
- Python | Sort an array according to absolute difference
- Number of ways to reach Nth floor by taking at-most K leaps
- Check if is possible to get given sum from a given set of elements
- Sudo Placement[1.7] | Greatest Digital Root
- Sum of sum of all subsets of a set formed by first N natural numbers
- match_results empty() in C++ STL
- Time difference between expected time and given time
- Hyperfactorial of a number
- Count pairs with Bitwise XOR as ODD number
- Saddleback Search Algorithm in a 2D array
- Morgan Stanley Interview Experience (On-Campus)
- Tetranacci Numbers
- Cunningham chain
- Reallocation of elements based on Locality of Reference
- CBSE Class 11 | Problem Solving Methodologies
- Program to print Sine-Wave Pattern
- Intersecting rectangle when bottom-left and top-right corners of two rectangles are given
- Check if a point lies on or inside a rectangle | Set-2
- Even digits Sum and Odd digits sum divisible by 4 and 3 respectively
- C++ program to find the type of the given iterator
- Longest chain of arr[i], arr[arr[i]], .. without repetition
- Eggs dropping puzzle (Binomial Coefficient and Binary Search Solution)
- Split the array and add the first part to the end | Set 2
- Program to Print the Trapezium Pattern
- Maximum number of dots after throwing a dice N times
- Program to find Nth term of series 9, 23, 45, 75, 113...
- Python | Pandas Split strings into two List/Columns using str.split()
- Balanced expressions such that given positions have opening brackets | Set 2
- Minimum element in a max heap
- ConcurrentHashMap putAll() method in Java
- Passing Reference to a Pointer in C++
- Python | Working with date and time using Pandas
- Program to Find the Largest Number using Ternary Operator
- Final cell position in the matrix
- Provider getVersion() method in Java with Examples
- Program to find the Nth term of series 5, 10, 17, 26, 37, 50, 65, 82, ...
- Number of divisors of a given number N which are divisible by K
- Program to find the nth Kynea number
- Program to find the Nth term of the series 0, 14, 40, 78, 124, ...
- Program to find the Nth term of the series 0, 5, 14, 27, 44, ........
- Provider toString() method in Java with Examples
- Provider getService() and getServices() method in Java
- Program to find sum of the given sequence
- Logic Gates in Python
- Maximum number of pieces in N cuts
- Program to calculate Bitonicity of an Array
- Find the Initial Array from given array after range sum queries
- Balance a string after removing extra brackets
- Recursive program to print triangular patterns
- Maximize the product of four factors of a Number
- Program to find the quantity after mixture replacement
- Collections addAll() method in Java with Examples
- Collections asLifoQueue() method in Java with Examples
- Find any pair with given GCD and LCM
- Minimum length of string having all permutation of given string.
- Collections checkedCollection() method in Java with Examples
- Collections checkedList() method in Java with Examples
- Collections copy() method in Java with Examples
- Collections fill() method in Java with Examples
- Collections indexOfSubList() method in Java with Examples
- Collections list() method in Java with Examples
- Find the sum of n terms of the series 1,8,27,64 ....
- Minimum no. of operations required to make all Array Elements Zero
- Count common subsequence in two strings
- Matrix Chain Multiplication (A O(N^2) Solution)
- Count the number of ways to traverse a Matrix
- Largest triangle that can be inscribed in an ellipse
- Program to print elements of a Matrix row-wise skipping alternate elements
- Find sum of product of number in given series
- Area of a circle inscribed in a regular hexagon
- Delete linked list nodes which have a greater value on left side
- Check if two arrays are permutations of each other using Mathematical Operation
- Thread.CurrentThread Property in C#
- Count number of integers less than or equal to N which has exactly 9 divisors
- Find the sum of first N terms of the series 2×3 + 4×4 + 6×5 + 8×6 + ...
- Program to print the Sum of series -1 + 2 + 11 + 26 + 47 +.....
- ArrayList removeAll() method in Java with Examples
- Program to print Kite Pattern
- Minimum odd cost path in a matrix
- AbstractList addAll() method in Java with Examples
- Program to find the Centroid of the triangle
- Program to find the Nth term of the series 0, 5, 18, 39, 67, 105, 150, 203, ...
- Program to find Nth term of series 0, 7, 18, 33, 51, 75, 102, 133, .....
- Program to find Nth term of series 4, 14, 28, 46, 68, 94, 124, 158, .....
- Program to find Nth term of series 0, 11, 28, 51, 79, 115, 156, 203, ....
- Program to find Nth term of series 0, 9, 22, 39, 60, 85, 114, 147, .....
- Program to find the common ratio of three numbers
- Program to find the Radius of the incircle of the triangle
- Java Tricky Output Questions
- Program to find remainder when large number is divided by r
- Find 'N' number of solutions with the given inequality equations
- Minimum changes required to make first string substring of second string
- Count Numbers with N digits which consists of odd number of 0's
- Maximum element in min heap
- Print a number strictly less than a given number such that all its digits are distinct.
- Number of solutions of n = x + n ⊕ x
- Find pair with maximum difference in any column of a Matrix
- Program to solve the Alligation Problem
- Program to print the Zigzag pattern
- Area of a square inscribed in a circle which is inscribed in a hexagon
- Check if it is possible to move from (0, 0) to (x, y) in N steps
- Area of circle which is inscribed in equilateral triangle
- Check if it is possible to sort the array after rotating it
- Minimum value possible of a given function from the given set
- Sum of alternate elements of a N x N matrix
- Number of ways to choose a pair containing an even and an odd number from 1 to N
- Minimum and maximum number of N chocolates after distribution among K students
- Check if a cell can be visited more than once in a String
- Number of solutions for x < y, where a <= x <= b and c <= y <= d and x, y are integers
- Find the total Number of Digits in (N!)N
- Check if the sum of digits of a number N divides it
- Find the number of rectangles of size 2*1 which can be placed inside a rectangle of size n*m
- Number of solutions for the equation x + y + z <= n
- Sum of all the elements in an array divisible by a given number K
- Program to find the maximum element in a Matrix
- Minimum number of digits to be removed so that no two consecutive digits are same
- Generate a number such that the frequency of each digit is digit times the frequency in given number
- Maximize number of nodes which are not part of any edge in a Graph
- Count all the numbers in a range with smallest factor as K
- Count pairs (i,j) such that (i+j) is divisible by A and B both
- Print N lines of 4 numbers such that every pair among 4 numbers has a GCD K
- Find last two digits of sum of N factorials
- StringBuilder appendCodePoint() method in Java with Examples
- Program to print Hut Star pattern
- Find Sum of Series 1^2 - 2^2 + 3^2 - 4^2 ..... upto n terms
- Product of all pairwise consecutive elements in an Array
- Program to replace every space in a string with hyphen
- Seating arrangement of n boys and girls alternatively around a round table
- Gould's Sequence
- Minimum number of nodes in an AVL Tree with given height
- Program to Print Mirrored Hollow Parallelogram
- Count of common multiples of two numbers in a range
- Sum and Product of minimum and maximum element of an Array
- Minimum swaps required to convert one binary string to another
- Number of squares of side length required to cover an N*M rectangle
- Maximum count of equal numbers in an array after performing given operations
- Maximum number of fixed points using atmost 1 swap
- Maximum difference elements that can added to a set
- Largest element in the array that is repeated exactly k times
- Check if the given vectors are at equilibrium or not
- Program to find the Sum of each Row and each Column of a Matrix
- Sum of Fibonacci numbers at even indexes upto N terms
- Count numbers whose difference with N is equal to XOR with N
- Find if a molecule can be formed from 3 atoms using their valence numbers
- Program to find the Area and Perimeter of a Semicircle
- Program to Convert Hexadecimal Number to Binary
- Number of anomalies in an array
- All possible numbers of N digits and base B without leading zeros
- Tree with N nodes and K leaves such that distance between farthest leaves is minimized
- Find the Nth term of the series 1 + 2 + 6 + 15 + 31 + 56 + ...
- Count changes in Led Lights to display digits one by one
- Section formula for 3 D
- Number of elements that can be seen from right side
- Check if there is any pair in a given range with GCD is divisible by k
- Equation of circle from centre and radius
- Round to next smaller multiple of 8
- Round to next greater multiple of 8
- Number of leading zeros in binary representation of a given number
- Replace every element of the array by product of all other elements
- Replace every array element by sum of previous and next
- Find amount to be added to achieve target ratio in a given mixture
- Longest subarray with elements divisible by k
- Problem of 8 Neighbours of an element in a 2-D Matrix
- Minimum array elements to be changed to make it a Lucas Sequence
- Count Number of animals in a zoo from given number of head and legs
- Find permutation of n which is divisible by 3 but not divisible by 6
- Maximum area of rectangle possible with given perimeter
- Area of decagon inscribed within the circle
- Number of triangles formed from a set of points on three lines
- Minimum cost to reach a point N from 0 with two different operations allowed
- Program to find Prime Numbers Between given Interval
- Program to calculate area and perimeter of a rhombus whose diagonals are given
- Minimum array insertions required to make consecutive difference <= K
- Ints concat() function | Guava | Java
- Check whether product of digits at even places of a number is divisible by K
- Program to find Nth term of series 7, 21, 49, 91, 147, 217, ......
- Replace every array element by Bitwise Xor of previous and next element
- Program to find the smallest element among three elements
- Longest subarray with elements having equal modulo K
- Replace every element with the smallest element on its left side
- Check whether (i,j) exists such that arr[i] != arr[j] and arr[arr[i]] is equal to arr[arr[j]]
- Count number less than N which are product of perfect squares
- Lexicographically smallest permutation with no digits at Original Index
- Find maximum volume of a cuboid from the given perimeter and area
- Sum of array Elements without using loops and recursion
- Magical Pattern
- Maximum difference of indices (i, j) such that A[i][j] = 0 in the given matrix
- Largest number smaller than or equal to N divisible by K
- Sum and Product of digits in a number that divide the number
- Count and Print the alphabets having ASCII value in the range [l, r]
- Largest N digit number divisible by given three numbers
- Maximum sum and product of the M consecutive digits in a number
- Count occurrences of a character in a repeated string
- GCD of a number raised to some power and another number
- Sum of all the multiples of 3 and 7 below N
- Minimum number of 1's to be replaced in a binary array
- Paths with maximum number of 'a' from (1, 1) to (X, Y) vertically or horizontally
- Steps to reduce N to zero by subtracting its most significant digit at every step
- AbstractSet Class in Java with Examples
- Check if a number is formed by Concatenation of 1, 14 or 144 only
- Largest sub-array whose all elements are perfect squares
- Program to find the sum of the series (1/a + 2/a^2 + 3/a^3 + ... + n/a^n)
- Print a case where the given sorting algorithm fails
- Largest right circular cone that can be inscribed within a sphere
- Largest cone that can be inscribed within a cube
- Largest cube that can be inscribed within a right circular cone
- Sum of common divisors of two numbers A and B
- Find the other number when LCM and HCF given
- LCM and HCF of fractions
- Find a value whose XOR with given number is maximum
- Check if the array has an element which is equal to product of remaining elements
- Check whether the sum of prime elements of the array is prime or not
- Element equal to the sum of all the remaining elements
- Number of ways to reach the end of matrix with non-zero AND value
- Ratio of area of a rectangle with the rectangle inscribed in it
- Partiton N into M parts such that difference between Max and Min part is smallest
- Print sum of matrix and its mirror image
- Largest cube that can be inscribed within a right circular cylinder
- Find if there is any subset of size K with 0 sum in an array of -1 and +1
- Longest rod that can be inserted within a right circular cylinder
- Count pairs with Bitwise XOR as EVEN number
- Count pairs with Bitwise-AND as even number
- Minimum number of moves required to reach the destination by the king in a chess board
- Product of middle row and column in an odd square matrix
- Program to convert the diagonal elements of the matrix to 0
- Sum of the digits of a number N written in all bases from 2 to N/2
- Check if N is divisible by a number which is composed of the digits from the set {A, B}
- Kotlin if-else expression
- Count Numbers with N digits which consists of even number of 0’s
- Find determinant of matrix generated by array rotation
- Largest right circular cylinder that can be inscribed within a cone
- Find maximum element of each column in a matrix
- Find a point that lies inside exactly K given squares
- Find position of left most dis-similar bit for two numbers
- Add N digits to A such that it is divisible by B after each addition
- Number of moves required to guess a permutation.
- Final string after performing given operations
- Fill missing entries of a magic square
- Find the intersection of two Matrices
- Find the Nth term of the series 14, 28, 20, 40,.....
- Minimum range increment operations to Sort an array
- Minimum number of moves to make all elements equal
- Youtube Data API | Set-2
- C# | Method returning an object
- Program to print the given Z Pattern
- Replace every element of the array by its previous element
- Replace every element of the array by its next element
- Length of longest consecutive ones by at most one swap in a Binary String
- MonthDay get() method in Java with Examples
- Check If every group of a's is followed by a group of b's of same length
- Smallest Pair Sum in an array
- Determine the count of Leaf nodes in an N-ary tree
- LocalDate minusYears() method in Java with Examples
- LocalDate minusWeeks() method in Java with Examples
- Construct a binary string following the given constraints
- Largest right circular cylinder within a cube
- ZonedDateTime plusDays() method in Java with Examples
- Minimum and Maximum number of pairs in m teams of n people
- Find the element whose multiplication with -1 makes array sum 0
- Find the only different element in an array
- Puzzle | 1000 light bulbs switched on/off by 1000 persons passing by
- Interchange elements of first and last columns in matrix
- Full screen OpenCV / GtK application in C++ running on Raspberry PI
- Sum of first N natural numbers when N is extremely large
- ZoneId getDisplayName() method in Java with Examples
- Number of Binary Strings of length N with K adjacent Set Bits
- Python Program to Count ways to reach the n'th stair
- ZonedDateTime format() method in Java with Examples
- ZonedDateTime form() method in Java with Examples
- ZonedDateTime get() method in Java with Examples
- Minimum absolute difference of a number and its closest prime
- Largest palindromic number in an array
- Most frequent factor in a range of integers
- Sum of integers upto N with given unit digit
- Average of remaining elements after removing K largest and K smallest elements from array
- Find numbers a and b that satisfy the given conditions
- Integers from the range that are composed of a single distinct digit
- Longest Subsequence where index of next element is arr[arr[i] + i]
- Check if moves in a stack or queue are possible or not
- LinkedHashSet removeAll() method in Java with Example
- Form N-copy string with add, remove and append operations
- Find an integer X which is divisor of all except exactly one element in an array
- Area of Reuleaux Triangle
- Diagonal of a Regular Pentagon
- URL toURI() method in Java with Examples
- Diagonal of a Regular Hexagon
- Maximum number of removals of given subsequence from a string
- Count pairs in an array that hold i+j= arr[i]+arr[j]
- Pairs from an array that satisfy the given condition
- Largest hexagon that can be inscribed within a square
- Print first N terms of series (0.25, 0.5, 0.75, ...) in fraction representation
- Minimize the maximum minimum difference after one removal from array
- Program for converting hours into minutes and seconds
- Count Subarrays with Consecutive elements differing by 1
- Do you want to make your own games?
- Check if all elements of the array are palindrome or not
- Count numbers in a range that are divisible by all array elements
- Product of N with its largest odd digit
- OffsetTime now() method in Java with examples
- Remove consecutive alphabets which are in same case
- Diagonal of a Regular Heptagon
- List sublist() Method in Java with Examples
- Area of a n-sided regular polygon with given side length
- Main Thread in C#
- Check if a number is perfect square without finding square root
- Choose n elements such that their mean is maximum
- Check whether a + b = c or not after removing all zeroes from a,b and c
- Apothem of a n-sided regular polygon
- Number of ways to remove a sub-string from S such that all remaining characters are same
- Count number of pairs (i, j) such that arr[i] * arr[j] > arr[i] + arr[j]
- Program to find the Nth term of the series 0, 3/1, 8/3, 15/5........
- Minimum absolute difference between N and a power of 2
- Minimum prime number operations to convert A to B
- Minimum distance to the end of a grid from source
- Count pairs of parentheses sequences such that parentheses are balanced
- Find the non decreasing order array from given array
- Length of the longest substring with consecutive characters
- Count the number of holes in an integer
- Find probability of selecting element from kth column after N iterations
- Program to check if two strings are same or not
- Check if a number can be expressed as sum two abundant numbers
- Ternary Search
- Find nth term of the series 5 2 13 41
- HTML | DOM cloneNode() Method
- Count distinct elements in an array
- Minimum moves to reach from i to j in a cyclic string
- Program for Area Of Square after N-th fold
- Largest number less than or equal to N/2 which is coprime to N
- Reverse Middle X Characters
- Count strings that end with the given pattern
- Biggest Reuleaux Triangle inscribed within a Square inscribed in an equilateral triangle
- Count of values of x <= n for which (n XOR x) = (n - x)
- BigInteger divide() Method in Java with Examples
- Find the Side of the smallest Square that can contain given 4 Big Squares
- Find array using different XORs of elements in groups of size 4
- Pizza Problem
- Remove characters from a numeric string such that string becomes divisible by 8
- Biggest Reuleaux Triangle inscribed within a square which is inscribed within a hexagon
- Program to check if a number is divisible by sum of its digits
- Composite XOR and Coprime AND
- Midpoint ellipse drawing algorithm
- Minimum operations of the given type required to make a complete graph
- Count operations of the given type required to reduce N to 0
- Arrange first N natural numbers such that absolute difference between all adjacent elements > 1
- numpy string operations | less_equal() function
- numpy string operations | greater_equal() function
- numpy string operations | greater() function
- Number of Simple Graph with N Vertices and M Edges
- Smallest integer greater than n such that it consists of digit m exactly k times
- Cost of painting n * m grid
- Count Odd and Even numbers in a range from L to R
- Ways to divide a binary array into sub-arrays such that each sub-array contains exactly one 1
- Program to Assign grades to a student using Nested If Else
- Find the winner by adding Pairwise difference of elements in the array until Possible
- Minimum operations required to modify the array such that parity of adjacent elements is different
- Find M-th number whose repeated sum of digits of a number is N
- Total position where king can reach on a chessboard in exactly M moves
- StringWriter hashCode() method in Java with Examples
- Lexicographically largest sub-sequence of the given string
- Find the values of X and Y in the Given Equations
- Find Intersection of all Intervals
- Maximize the sum of products of the degrees between any two vertices of the tree
- Modify a binary array to Bitwise AND of all elements as 1
- Minimum number of given operations required to convert a string to another string
- Length of the longest alternating subarray
- Minimize the sum of squares of sum of N/2 paired formed by N numbers
- Check whether the point (x, y) lies on a given line
- Count of pairs (x, y) in an array such that x < y
- Maximize the maximum among minimum of K consecutive sub-arrays
- Sum of bitwise AND of all subarrays
- Find index i such that prefix of S1 and suffix of S2 till i form a palindrome when concatenated
- Minimum index i such that all the elements from index i to given index are equal
- Find the longest Fibonacci-like subarray of the given array
- Split an array into groups of 3 such that X3 is divisible by X2 and X2 is divisible by X1
- Check whether the number can be made perfect square after adding 1
- Number of Hamiltonian cycle
- Sum of all Submatrices of a Given Matrix
- Number of trailing zeroes in base 16 representation of N!
- Count paths with distance equal to Manhattan distance
- Find the number of solutions to the given equation
- Sum of the natural numbers (up to N) whose modulo with K yield R
- XOR of XORs of all sub-matrices
- NLP | Training Tagger Based Chunker | Set 2
- Pick points from array such that minimum distance is maximized
- Count Hexadecimal Number
- Time until distance gets equal to X between two objects moving in opposite direction
- Find last five digits of a given five digit number raised to power five
- Find the count of numbers that can be formed using digits 3, 4 only and having length at max N.
- Number of ways to pair people
- Maximum Primes whose sum is equal to given N
- Third last digit in 5^N for given N
- Longest subarray such that adjacent elements have at least one common digit | Set - 2
- Count numbers having N 0's and and M 1's with no leading zeros
- Print the balanced bracket expression using given brackets
- Check whether the Average Character of the String is present or not
- Series summation if T(n) is given and n is very large
- Maximum average of a subarray of size of atleast X and atmost Y
- Sum of i * countDigits(i)^2 for all i in range [L, R]
- Minimum steps to make all the elements of the array divisible by 4
- Check if a Queen can attack a given cell on chessboard
- Addition of two numbers without propagating Carry
- Find if the given number is present in the infinite sequence or not
- Maximum trace possible for any sub-matrix of the given matrix
- Position of the K-th set bit in a number
- Print a number as string of 'A' and 'B' in lexicographic order
- JavaScript | Error name Property
- Count pairs with bitwise OR less than Max
- Programs for printing pyramid patterns using recursion
- Replace all elements by difference of sums of positive and negative numbers after that element
- Sum of Fibonacci Numbers in a range
- Program to find the time after K minutes from given time
- Minimum number of given operation required to convert n to m
- Maximum volume of cube for every person when edge of N cubes are given
- Minimum number operations required to convert n to m | Set-2
- Given count of digits 1, 2, 3, 4, find the maximum sum possible
- Count common characters in two strings
- Minimum value to add to arr[i] so that an array can be split at index i with equal sum
- Sum of degrees of all nodes of a undirected graph
- Replace array elements by sum of next two consecutive elements
- HTML | DOM Anchor host Property
- Count of sub-strings that do not contain all the characters from the set {'a', 'b', 'c'} at the same time
- Check whether factorial of N is divisible by sum of first N natural numbers
- Check if factorial of N is divisible by the sum of squares of first N natural numbers
- Find the number of integers from 1 to n which contains digits 0's and 1's only
- Find the number of jumps to reach X in the number line from zero
- Element in a matrix starting from which anti-clockwise traversal ends at the last element
- Maximum element in a sorted and rotated array
- Find the minimum number of steps to reach M from N
- Find maximum in stack in O(1) without using additional stack
- Check if a given number divides the sum of the factorials of its digits
- Sum of the series Kn + ( K(n-1) * (K-1)1 ) + ( K(n-2) * (K-1)2 ) + ....... (K-1)n
- Find the sum of the diagonal elements of the given N X N spiral matrix
- Length of the smallest number which is divisible by K and formed by using 1's only
- Number of ways for playing first move optimally in a NIM game
- Area of the biggest ellipse inscribed within a rectangle
- Minimum number of given operations required to convert a permutation into an identity permutation
- Find the count of sub-strings whose characters can be rearranged to form the given word
- Count all prefixes of the given binary array which are divisible by x
- Elements greater than the previous and next element in an Array
- Count consecutive pairs of same elements
- Length of the longest increasing subsequence such that no two adjacent elements are coprime
- Find (1^n + 2^n + 3^n + 4^n) mod 5 | Set 2
- Find the number of elements greater than k in a sorted array
- Find maximum sum taking every Kth element in the array
- Minimum number of changes such that elements are first Negative and then Positive
- Length of the longest substring with no consecutive same letters
- Predict the winner of the game on the basis of absolute difference of sum by selecting numbers
- Count the number of currency notes needed
- Program to find the maximum difference between the index of any two different numbers
- Minimum possible final health of the last monster in a game
- Find the sum of digits of a number at even and odd places
- Count the number of sub-arrays such that the average of elements present in the sub-array is greater than that not present in the sub-array
- Largest ellipse that can be inscribed within a rectangle which in turn is inscribed within a semicircle
- Check if product of first N natural numbers is divisible by their sum
- Interview Experience with Indus Valley Partners Feb 2019
- Difference between the Constructors and Methods
- Find minimum positive integer x such that a(x^2) + b(x) + c >= k
- Length of the normal from origin on a straight line whose intercepts are given
- Number of subsequences with zero sum
- Count of sub-strings that do not consist of the given character
- Find the maximum possible value of a[i] % a[j] over all pairs of i and j
- 3-digit Osiris number
- Dudeney Numbers
- Maximum absolute difference in an array
- Maximum elements which can be crossed using given units of a and b
- Distance between two parallel lines
- HTML | dirname Attribute
- Find maximum product of digits among numbers less than or equal to N
- What is Anonymous Types in C#?
- C# | Check if two Tuple Objects are equal
- Find the lexicographically smallest sequence which can be formed by re-arranging elements of second array
- How to re-index an array in PHP?
- Python | Find missing elements in List
- Check whether we can sort two arrays by swapping A[i] and B[i]