- JavaFX | AmbientLight Class
- MouseListener and MouseMotionListener in Java
- Java Swing | JPanel with examples
- JavaFX | Button with examples
- Java Robot Class | Get the pixel Color of a given point
- JSwing | Create a Magnifying tool using Java Robot
- Java Swing | Internal Frame with examples
- Check if a given string is made up of two alternating characters
- JavaFX | Line with examples
- JavaFX | TextFlow Class
- Java Swing | JMenuBar
- Java Swing | JFileChooser
- Java Swing | JTextField
- Draw a Polygon in Java Applet
- Java Swing | JProgressBar
- Java Swing | JPasswordField
- Java Swing | JSpinner
- Java Swing | JPopupMenu
- Java Swing | JTextArea
- JLabel | Java Swing
- Java Swing | Translucent and shaped Window in Java
- Java Swing | JToolBar
- Java Swing | ToolTip
- Java Swing | JSlider
- Java Swing | JSplitPane with Examples
- Java Swing | JComboBox with examples
- Java Swing | Simple Calculator
- Java Swing | JCheckBox with examples
- JSwing | Create Translucent and Shaped Windows in Java
- Automate mouse events using Java Robot Class
- Java Swing | JDialog with examples
- Java Swing | JWindow with examples
- Java Swing | Creating a Toast Message
- Draw a ellipse and a rectangle in Java Applet
- Java Swing | JList with examples
- Java Swing | Creating Custom Message Dialogs
- Java Applet | Implementing Flood Fill algorithm
- Java AWT | Cursor class with examples
- JavaFX | Rectangle and Rounded Rectangle with examples
- Java AWT | Choice Class
- Java AWT | Desktop Class
- Java AWT | Color Class
- Java Swing | BevelBorder and SoftBevelBorder
- Java AWT | MouseInfo and PointerInfo
- Java Swing | MatteBorder
- Java Swing | Popup and PopupFactory with examples
- Java AWT | Dimension Class
- JavaFX | TextField
- JavaFx | PasswordField
- Java Swing | Create a simple text editor
- JavaFX | Label
- Java AWT | Canvas Class
- Java AWT | Ellipse2D
- Java AWT | WindowStateListener
- JavaFX | ProgressBar
- JavaFX | ProgressIndicator
- Java Swing | JSeparator with examples
- JavaFX | ComboBox with examples
- JavaFX | CustomMenuItem
- JavaFX | Checkbox
- JavaFX | Tooltip
- JavaFX | ChoiceBox
- JavaFX | RadioButton with examples
- JavaFx | ColorPicker with examples
- JavaFX | ChoiceDialog
- JavaFX | Alert with examples
- JavaFX | DatePicker with examples
- JavaFX | TextInputDialog
- JavaFX | MenuBar and Menu
- JavaFX | MenuButton
- JavaFX | ContextMenu with examples
- JavaFX | Tab Class
- JavaFX | CheckMenuItem with examples
- JavaFX | Polygon with examples
- JavaFX | Circle with examples
- JavaFX | Polyline with examples
- JavaFX | Ellipse with examples
- JavaFX | HTMLEditor Class
- JavaFX | Box with examples
- JavaFX | Cylinder with examples
- JavaFX | Sphere with examples
- JavaFX | QuadCurve with examples
- JavaFX | Arc with examples
- JavaFX | CubicCurve with examples
- JavaFX | PointLight with examples
- JavaFX | Cursor class with examples
- JavaFX | PieChart Class
- JavaFX | Point3D Class
- JavaFX | Shadow Class
- JavaFX | Bloom Class
- JavaFX | Insets Class
- JavaFX | Dimension2D Class
- JavaFX | Point2D Class
- JavaFX | Canvas Class
- JavaFX | Glow Class
- JavaFX | Reflection Class
- JavaFx | GaussianBlur Class
- JavaFX | BoxBlur Class
- JavaFX | DropShadow Class
- JavaFX | MotionBlur Class
- JavaFX | ColorAdjust Class
- JavaFX | SepiaTone Class
- JavaFX | InnerShadow Class
- JavaFX | Rectangle2D Class
- JavaFX | Duration Class
- JavaFX | Light.Point Class
- JavaFX | Light.Spot Class
- JavaFX | Popup Class
- Java AWT | MenuShortcut Class
- JavaFX | TabPane Class
- JavaFX | Hyperlink Class
- JavaFX | WebView Class
- JavaFX | Background Class
- JavaFX | ToolBar Class
- JavaFX | VBox Class
- JavaFX | HBox Class
- JavaFX | BorderPane Class
- JavaFX | Group Class
- JavaFX | Pane Class
- JavaFX | AnchorPane Class
- JavaFX | FlowPane Class
- JavaFX | StackPane Class
- JavaFX | Pos Class
- JavaFX | FontWeight Class
- JavaFX | TextAlignment Class
- JavaFX | FileChooser Class
- JavaFX | DirectoryChooser Class
- JavaFX | Font Class
- JavaFX | FontPosture Class
- JavaFX | LinearGradient Class
- JavaFX | Stop Class
- JavaFX | ImagePattern Class
- JavaFX | CycleMethod Class
- JavaFX | VLineTo Class
- JavaFX | HLineTo Class
- Number of divisors of a given number N which are divisible by K
- JavaFX | LineTo class
- JavaFX | ClosePath class
- JavaFX | TitledPane Class
- JavaFX | SplitPane Class
- Number of Co-prime pairs from 1 to N with product equals to N
- Find the GCD of N Fibonacci Numbers with given Indices
- Number of unique permutations starting with 1 of a Binary String
- File getAbsolutePath() method in Java with Examples
- File getAbsoluteFile() method in Java with Examples
- File getCanonicalPath() method in Java with Examples
- Sum of all Primes in a given range using Sieve of Eratosthenes
- Count Numbers with N digits which consists of odd number of 0's
- Next greater number than N with exactly one bit different in binary representation of N
- Check if there is any common character in two given strings
- Count all the numbers less than 10^6 whose minimum prime factor is N
- Product of all primes in the range from L to R
- Check whether bitwise AND of a number with any subset of an array is zero or not
- Sum of alternate elements of a N x N matrix
- Subset array sum by generating all the subsets
- Time class in Java SQL
- Sum of the first N Prime numbers
- Pair of prime numbers with a given sum and minimum absolute difference
- Find Four points such that they form a square whose sides are parallel to x and y axes
- Longest Subsequence with at least one common digit in every element
- Sum of every K'th prime number in an array
- Number of mismatching bits in the binary representation of two integers
- Numbers in range [L, R] such that the count of their divisors is both even and prime
- Difference between the largest and the smallest primes in an array
- Check if the characters of a given string are in alphabetical order
- Remove even frequency characters from the string
- Largest element in the array that is repeated exactly k times
- Sub-strings of length K containing same character
- K- Fibonacci series
- Check whether the vowels in a string are in alphabetical order or not
- Check whether two strings can be made equal by increasing prefixes
- Check whether count of distinct characters in a string is Prime or not
- Check whether the frequencies of all the characters in a string are prime or not
- Check if a prime number can be expressed as sum of two Prime Numbers
- Sum of multiples of A and B less than N
- Sum of common divisors of two numbers A and B
- Sort an array according to the increasing count of distinct Prime Factors
- Number of blocks in a chessboard a knight can move to in exactly k moves
- Common prime factors of two numbers
- Count of pairs in an array whose sum is a perfect square
- URL sameFile() method in Java with Examples
- URL getDefaultPort() method in Java with Examples
- URL toURI() method in Java with Examples
- URL getHost() method in Java with Examples
- URL getAuthority() method in Java with Examples
- URL getPort() method in Java with Examples
- URL getProtocol() method in Java with Examples
- URL getQuery() method in Java with Examples
- URL getUserInfo() method in Java with Examples
- URL getPath() method in Java with Examples
- URL getFile() method in Java with Examples
- URL toExternalForm() method in Java with Examples
- URL getRef() method in Java with Examples
- URI getRawAuthority() method in Java with Examples
- URI getAuthority() method in Java with Examples
- URI getQuery() method in Java with Examples
- URI getRawUserInfo() method in Java with Examples
- URI getHost() method in Java with Examples
- URI getPath() method in Java with Examples
- URI getRawQuery() method in Java with Examples
- URI getUserInfo() method in Java with Examples
- URI getRawPath() method in Java with Examples
- File canExecute() method in Java with Examples
- File isDirectory() method in Java with Examples
- File canRead() method in Java with Examples
- File canWrite() method in Java with examples
- File isHidden() method in Java with Examples
- File lastModified() method in Java with Examples
- File createNewFile() method in Java with Examples
- File isFile() method in Java with Examples
- File exists() method in Java with examples
- File length() method in Java with Examples
- File delete() method in Java with Examples
- File createTempFile() method in Java with Examples
- File getFreeSpace() method in Java with examples
- File getTotalSpace() method in Java with examples
- File getUsableSpace() method in java with examples
- File setReadOnly() method in Java with examples
- File mkdirs() method in Java with examples
- File mkdir() method in Java with examples
- File listRoots() method in Java with examples
- File renameTo() method in Java with examples
- File getParentFile() method in Java with Examples
- File isAbsolute() method in Java with Examples
- File getPath() method in Java with Examples
- File list() method in Java with Examples
- File getCanonicalFile() method in Java with Examples
- File setWritable() method in Java with Examples
- File getParent() method in Java with Examples
- File setLastModified() method in Java with Examples
- File getName() method in Java with Examples
- File listFiles() method in Java with Examples
- File setReadable() function in Java with Examples
- File setExecutable() method in Java with Examples
- Convex Hull | Monotone chain algorithm
- Java SQL Timestamp setTime() function with examples
- ZipFile getName() function in Java with examples
- ZipFile size() function in Java with examples
- ZipFile getEntry() function in Java with examples
- ZipFile getComment() function in Java with examples
- Java SQL Timestamp setNanos() function with examples
- Java SQL Timestamp before() function with examples
- Java SQL Timestamp after() function with examples
- Java SQL Timestamp getTime() function with examples
- Java SQL Timestamp getNanos() function with examples
- ZipFile entries() function in Java with examples
- Perimeter of Convex hull for a given set of points
- Java ZipEntry setCrc() function with examples
- Java ZipEntry setCreationTime() function with examples
- Java ZipEntry getLastModifiedTime() function with examples
- Java ZipEntry setLastAccessTime() function with examples
- Java ZipEntry getLastAccessTime() function with examples
- Java ZipEntry setCompressedSize() function with examples
- Java ZipFile getInputStream() function with examples
- Java ZipEntry getCompressedSize() function with examples
- Java ZipEntry getName() function with examples
- Java ZipEntry getMethod() function with examples
- Java ZipEntry getSize() function with examples
- Java ZipEntry getTime() function with examples
- Java ZipEntry setComment() function with examples
- Java ZipEntry getComment() function with examples
- Java ZipEntry getCreationTime() function with examples
- Java ZipEntry setLastModifiedTime() function with examples
- Java ZipEntry getCrc() function with examples
- Uniform Binary Search
- Sum of degrees of all nodes of a undirected graph
- Uniform-Cost Search (Dijkstra for large Graphs)
- Count of strings whose prefix match with the given string to a given length k
- Arrange array elements such that last digit of an element is equal to first digit of the next element
- XOR of all the nodes in the sub-tree of the given node
- 8086 program to Print a 16 bit Decimal number
- Check whether product of integers from a to b is positive , negative or zero
- Check whether a number can be represented as sum of K distinct positive integers
- Sort an alphanumeric string such that the positions of alphabets and numbers remain unchanged
- Find the sum of numbers from 1 to n excluding those which are powers of K

- Tree Traversals (Inorder, Preorder and Postorder)
- Write a function to get Nth node in a Linked List
- Write a function that counts the number of times a given int occurs in a Linked List
- Reverse a linked list
- Write a function to get the intersection point of two Linked Lists.
- Function to check if a singly linked list is palindrome
- Inorder Tree Traversal without recursion and without stack!
- Move last element to front of a given Linked List
- Reverse a stack using recursion
- Pairwise swap elements of a given linked list
- Merge Sort for Linked Lists
- Foldable Binary Trees
- Sorted order printing of a given array that represents a BST
- Sorted insert for circular linked list
- Reverse alternate K nodes in a Singly Linked List
- Populate Inorder Successor for all nodes
- Symmetric Tree (Mirror Image of itself)
- Iterative Postorder Traversal | Set 1 (Using Two Stacks)
- Implement Stack using Queues
- Union-Find Algorithm | Set 2 (Union By Rank and Path Compression)
- The Stock Span Problem
- Reverse Level Order Traversal
- Design a stack with operations on middle element
- Delete N nodes after M nodes of a linked list
- Print Postorder traversal from given Inorder and Preorder traversals
- Remove all nodes which don't lie in any path with sum>= k
- Check if a given Binary Tree is height balanced like a Red-Black Tree
- Swap nodes in a linked list without swapping data
- Maximum profit by buying and selling a share at most twice
- Iterative Tower of Hanoi
- Count BST subtrees that lie in given range
- Sort a linked list that is sorted alternating ascending and descending orders?
- Construct all possible BSTs for keys 1 to N
- Expression Tree
- Sort a stack using recursion
- Inorder Non-threaded Binary Tree Traversal without Recursion or Stack
- Density of Binary Tree in One Traversal
- Print Binary Tree in 2-Dimensions
- Count pairs formed by distinct element sub-arrays
- Design a stack that supports getMin() in O(1) time and O(1) extra space
- Check if a linked list is Circular Linked List
- Decimal Equivalent of Binary Linked List
- Print extreme nodes of each level of Binary Tree in alternate order
- Maximum element between two nodes of BST
- Flip Binary Tree
- Minimum number of increment/decrement operations such that array contains all elements from 1 to N
- Find pairs with given sum in doubly linked list
- Swap Nodes in Binary tree of every k'th level
- Convert a Binary Tree to Threaded binary tree | Set 2 (Efficient)
- Continuous Tree
- Check if given sorted sub-sequence exists in binary search tree
- Find pairs with given sum such that pair elements lie in different BSTs
- Subtree with given sum in a Binary Tree
- Find the closest element in Binary Search Tree
- Print all k-sum paths in a binary tree
- Length of longest palindrome list in a linked list using O(1) extra space
- Move all occurrences of an element to end in a linked list
- Deletion from a Circular Linked List
- Prufer Code to Tree Creation
- Doubly Circular Linked List | Set 2 (Deletion)
- Circular Queue | Set 2 (Circular Linked List Implementation)
- AVL with duplicate keys
- Circular Linked List | Set 2 (Traversal)
- Delete last occurrence of an item from linked list
- Stack | Set 4 (Evaluation of Postfix Expression)
- Threaded Binary Tree | Insertion
- Threaded Binary Search Tree | Deletion
- Multiply two numbers represented by Linked Lists
- Find median of BST in O(n) time and O(1) space
- Program for Page Replacement Algorithms | Set 2 (FIFO)
- Print path from root to a given node in a binary tree
- Insert value in sorted way in a sorted doubly linked list
- Count triplets in a sorted doubly linked list whose sum is equal to a given value x
- Replace each node in binary tree with the sum of its inorder predecessor and successor
- Delete all occurrences of a given key in a doubly linked list
- Recursive selection sort for singly linked list | Swapping node links
- Maximum sum from a tree with adjacent levels not allowed
- String which when repeated exactly K times gives a permutation of S
- Count nodes in Circular linked list
- Reverse a Linked List in groups of given size | Set 2
- Maximum path sum in matrix
- Count of Numbers in Range where the number does not contain more than K non zero digits
- Reverse a Linked List according to its Size
- Print nodes at k distance from root | Iterative
- Sum of all nodes in a binary tree
- Find sum of all right leaves in a given Binary Tree
- Merge two sorted lists (in-place)
- Remove duplicates from a sorted linked list using recursion
- Josephus Circle using circular linked list
- Exchange first and last nodes in Circular Linked List
- Print all palindromic paths from top left to bottom right in a matrix
- Convert singly linked list into circular linked list
- Sum of all the parent nodes having child node x
- Reverse a stack without using extra space in O(n)
- Construct Full Binary Tree using its Preorder traversal and Preorder traversal of its mirror tree
- Inorder Successor of a node in Binary Tree
- Maximum length subsequence possible of the form R^N K^N
- Number of Binary Trees for given Preorder Sequence length
- Next Greater Frequency Element
- Left Leaning Red Black Tree (Insertion)
- Reverse a circular linked list
- Number of NGEs to the right
- Recursive function to delete k-th node from linked list
- Reverse a Doubly linked list using recursion
- Iterative diagonal traversal of binary tree
- Find n-th node of inorder traversal
- Reverse a Doubly Linked List | Set-2
- Count subtrees that sum up to a given value x
- Reverse first K elements of given linked list
- Iterative searching in Binary Search Tree
- Insert a whole linked list into other at k-th position
- Postorder traversal of Binary Tree without recursion and without stack
- Reverse a Doubly Linked List | Set 4 (Swapping Data)
- Make a loop at k-th position in a linked list
- Find the largest node in Doubly linked list
- Water Connection Problem
- Reverse a doubly linked list in groups of given size
- Check if a Binary Tree (not BST) has duplicate values
- Print alternate nodes of a linked list using recursion
- Print the alternate nodes of linked list (Iterative Method)
- Alternate Odd and Even Nodes in a Singly Linked List
- Priority Queue using Linked List
- Modify a binary tree to get preorder traversal using right pointers only
- Priority Queue using doubly linked list
- Postfix to Infix
- Postfix to Prefix Conversion
- Prefix to Postfix Conversion
- Level order traversal line by line | Set 3 (Using One Queue)
- Sum of heights of all individual nodes in a binary tree
- Check given array of size n can represent BST of n levels or not
- Reverse each word in a linked list node
- Rotate Doubly linked list by N nodes
- Lucky alive person in a circle | Code Solution to sword puzzle
- Find sum of all nodes of the given perfect binary tree
- Reverse tree path
- Minimum rooms for m events of n batches with given schedule
- Sorted insert in a doubly linked list with head and tail pointers
- Find unique elements in a matrix
- Program to find N-th term of the series a, b, b, c, c, c,.......
- Program to find size of Doubly Linked List
- Powers of 2 to required sum
- Find largest subtree sum in a tree
- Number of siblings of a given Node in n-ary Tree
- Lexicographically smallest string obtained after concatenating array
- Minimum product subset of an array
- Position of n among the numbers made of 2, 3, 5 & 7
- Sum of bitwise AND of all possible subsets of given set
- Find all palindromic sub-strings of a given string | Set 2
- Delete all Prime Nodes from a Singly Linked List
- Count binary strings with twice zeros in first half
- JRadioButton | Java Swing
- Sum of square-sums of first n natural numbers
- Reflection of a point at 180 degree rotation of another point
- N/3 repeated number in an array with O(1) space
- Maximum subset with bitwise OR equal to k
- Same Number Of Set Bits As N
- Sum of product of r and rth Binomial Coefficient (r * nCr)
- K-th smallest element after removing given integers from natural numbers | Set 2
- Reverse nodes of a linked list without affecting the special characters
- Pentatope number
- Infix to Prefix conversion using two stacks
- Sort the biotonic doubly linked list | Set-2
- Find the frequency of a digit in a number
- Find n-th node in Preorder traversal of a Binary Tree
- Find a Symmetric matrix of order N that contain integers from 0 to N-1 and main diagonal should contain only 0's
- Convert a Binary Tree such that every node stores the sum of all nodes in its right subtree
- Move first element to end of a given Linked List
- Find n-th node in Postorder traversal of a Binary Tree
- Find postorder traversal of BST from preorder traversal
- Minimum steps in which N can be obtained using addition or subtraction at every step
- Count occurrences of a substring recursively
- Compute power of power k times % m
- Find an element which divides the array in two subarrays with equal product
- Program to check similarity of given two triangles
- All pairs whose xor gives unique prime
- Sum of all even frequency elements in Matrix
- Delete all the nodes from the doubly linked list that are greater than a given value
- Delete all the even nodes from a Doubly Linked List
- Find the sum of non-prime elements in the given array
- Range product queries in an array
- Program to print numeric pattern | Set - 2
- Number of elements smaller than root using preorder traversal of a BST
- Print all the pairs that contains the positive and negative values of an element
- Lexicographically middle string
- Count pairs with Bitwise AND as ODD number
- Weird Number
- Sum of XOR of sum of all pairs in an array
- Inserting M into N such that m starts at bit j and ends at bit i | Set-2
- Insertion at Specific Position in a Circular Doubly Linked List
- Longest common anagram subsequence from N strings
- Intersecting rectangle when bottom-left and top-right corners of two rectangles are given
- Number of handshakes such that a person shakes hands only once
- Longest subarray such that the difference of max and min is at-most one
- Add two unsigned numbers using bits
- Number of Co-prime pairs obtained from the sum of digits of elements in the given range
- Find First element in AP which is multiple of given prime
- Sum of all elements repeating 'k' times in an array
- Bubble Sort On Doubly Linked List
- Cut all the rods with some length such that the sum of cut-off length is maximized
- Maximum possible intersection by moving centers of line segments
- Minimum number of changes required to make the given array an AP
- Printing frequency of each character just after its consecutive occurrences
- Find the Missing Number in a sorted array
- Count numbers which can be represented as sum of same parity primes
- Number of quadrilaterals possible from the given points
- N-th term in the series 1, 11, 55, 239, 991,....
- Elements that occurred only once in the array
- Find the maximum node at a given level in a binary tree
- Number of ways a convex polygon of n+2 sides can split into triangles by connecting vertices
- Number of ways to change the XOR of two numbers by swapping the bits
- Count number of triplets with product equal to given number | Set 2
- Program to find GCD or HCF of two numbers using Middle School Procedure
- Program to print half diamond Number-Star pattern
- Root to leaf path sum equal to a given number in BST
- Program to Find the Largest Number using Ternary Operator
- FIFO (First-In-First-Out) approach in Programming
- Convert an Array to a Circular Doubly Linked List
- Length of longest common subsequence containing vowels
- Recursive Approach to find nth node from the end in the linked list
- Longest subarray having maximum sum
- Reverse a doubly circular linked list
- Distinct Prime Factors of Array Product
- Product of all prime nodes in a Doubly Linked List
- LIFO (Last-In-First-Out) approach in Programming
- Sum of the nodes of a Singly Linked List
- Search an Element in Doubly Circular Linked List
- Delete every Kth node from circular linked list
- Delete all the nodes from a doubly linked list that are smaller than a given value
- Sum of all nodes in a doubly linked list divisible by a given number K
- Maximum and Minimum element of a linked list which is divisible by a given number k
- Sum and Product of the nodes of a Singly Linked List which are divisible by K
- Sum and Product of all Prime Nodes of a Singly Linked List
- Minimum and Maximum Prime Numbers of a Singly Linked List
- Replace even nodes of a doubly linked list with the elements of array
- Find the Second Largest Element in a Linked List
- Print Doubly Linked list in Reverse Order
- Delete all Prime Nodes from a Doubly Linked List
- Delete all nodes from the doubly linked list which are divisible by K
- Find a peak element in Linked List
- Find column with maximum sum in a Matrix
- Sum of the nodes of a Circular Linked List
- Area of a circle inscribed in a rectangle which is inscribed in a semicircle
- Check if it is possible to sort the array after rotating it
- Insert a node in Binary Search Tree Iteratively
- Product of all nodes in a doubly linked list divisible by a given number K
- Product of the nodes of a Singly Linked List
- Delete all the even nodes of a Circular Linked List
- Product of all leaf nodes of binary tree
- Remove BST Keys in a given Range
- Delete all Prime Nodes from a Circular Singly Linked List
- Product of all nodes in a Binary Tree
- Find pairs with given product in a sorted Doubly Linked List
- All possible co-prime distinct element pairs within a range [L, R]
- Optimal sequence for AVL tree insertion (without any rotations)
- Product of the alternate nodes of linked list
- Sum of the alternate nodes of linked list
- Length of the Diagonal of the Octagon
- Sort only non-prime numbers of an array in increasing order
- Check whether a binary string can be formed by concatenating given N numbers sequentially
- Print nodes in the Top View of Binary Tree | Set 3
- Find the longest common prefix between two strings after performing swaps on second string
- Find the common nodes in two singly linked list
- Number of permutations of a string in which all the occurrences of a given character occurs together
- Rotate the sub-list of a linked list from position M to N to the right by K places
- Check if a pair with given product exists in Linked list
- Count numbers whose difference with N is equal to XOR with N
- Count triplets in a sorted doubly linked list whose product is equal to a given value x
- Check if all the palindromic sub-strings are of odd length
- Program to Convert Octal Number to Binary Number
- Print array elements in alternatively increasing and decreasing order
- Replace repeating elements with greater that greatest values
- Number of elements that can be seen from right side
- Remove characters that appear more than k times
- Remove first node of the linked list
- Remove last node of the linked list
- Longest subarray in which all elements are greater than K
- Replace all consonants with nearest vowels in a string
- Get maximum items when other items of total cost of an item are free
- Print nodes of linked list at given indexes
- Number of words in a camelcase sequence
- Count of Prime Nodes of a Singly Linked List
- Sum and Product of all Composite numbers which are divisible by k in an array
- Minimum number of operations required to delete all elements of the array
- Smallest number greater than or equal to N divisible by K
- Find minimum and maximum elements in singly Circular Linked List
- Maximums from array when the maximum decrements after every access
- Rearrange a string in the form of integer sum followed by the minimized character
- Multiplication of two polynomials using Linked list
- Check whether a given binary tree is skewed binary tree or not?
- GCD of a number raised to some power and another number
- Find a number that divides maximum array elements
- Count subarrays with Prime sum
- Find all good indices in the given Array
- Largest cube that can be inscribed within the sphere
- Sum of all the multiples of 3 and 7 below N
- Count and Print the alphabets having ASCII value not in the range [l, r]
- Print each word in a sentence with their corresponding average of ASCII values
- Find the count of substrings in alphabetic order
- Smallest prime number missing in an array
- Sum and Product of the nodes of a Circular Singly Linked List which are divisible by K
- Find two numbers whose sum and GCD are given
- Print all numbers less than N with at-most 2 unique digits
- Check if the array has an element which is equal to sum of all the remaining elements
- Find the number of primitive roots modulo prime
- XOR of path between any two nodes in a Binary Tree
- Search a node in Binary Tree
- Double ended priority queue
- Print path between any two nodes in a Binary Tree
- Check if two nodes are in same subtree of the root node
- Find the other number when LCM and HCF given
- LCM and HCF of fractions
- Minimum number of characters to be replaced to make a given string Palindrome
- Generate a sequence with the given operations
- Count Triplets such that one of the numbers can be written as sum of the other two
- Minimum cost to cover the given positions in a N*M grid
- Element equal to the sum of all the remaining elements
- Program to convert given Matrix to a Diagonal Matrix
- Largest perfect cube number in an Array
- Largest cube that can be inscribed within a right circular cylinder
- Sum of all odd nodes in the path connecting two given nodes
- Sum of the digits of a number N written in all bases from 2 to N/2
- Check if N can be represented as sum of integers chosen from set {A, B}
- Check if N is divisible by a number which is composed of the digits from the set {A, B}
- Count number of triplets (a, b, c) such that a^2 + b^2 = c^2 and 1 <= a <= b <= c <= n
- Find a point that lies inside exactly K given squares
- Delete all Non-Prime Nodes from a Singly Linked List
- Check if elements of an array can be arranged satisfying the given condition
- Find the minimum positive integer such that it is divisible by A and sum of its digits is equal to B
- Check if the given decimal number has 0 and 1 digits only
- Number of Binary Strings of length N with K adjacent Set Bits
- Count valid pairs in the array satisfying given conditions
- Maximum possible time that can be formed from four digits
- Sum of elements in an array with frequencies greater than or equal to that element
- Concatenate suffixes of a String
- Remove all continuous occurrences of 'a' and all occurrences of 'b'
- Count characters in a string whose ASCII values are prime
- Minimum Distance Between Words of a String
- Sum of integers upto N with given unit digit
- Check if the sum of primes is divisible by any prime from the array
- Integers from the range that are composed of a single distinct digit
- Sub-strings of a string that are prefix of the same string
- Find the Number of Maximum Product Quadruples
- Find nth Hermite number
- Minimum number of consecutive sequences that can be formed in an array
- Minimum in an array which is first decreasing then increasing
- Minimum steps to reach any of the boundary edges of a matrix | Set 1
- Recursive program to print all subsets with given sum
- Ways to fill N positions using M colors such that there are exactly K pairs of adjacent different colors
- Largest Square that can be inscribed within a hexagon
- Maximum GCD of N integers with given product
- Form N-copy string with add, remove and append operations
- Find minimum x such that (x % k) * (x / k) == n
- Count of Numbers in a Range where digit d occurs exactly K times
- Largest sub-set possible for an array satisfying the given condition
- Ways to paint N paintings such that adjacent paintings don't have same colors
- Recursive program to print all numbers less than N which consist of digits 1 or 3 only
- Convert given string so that it holds only distinct characters
- Find probability of selecting element from kth column after N iterations
- Find the sum of the all amicable numbers up to N
- Check if a number can be expressed as sum two abundant numbers
- Ternary Search
- Print all Proth primes up to N
- Count number of sub-sequences with GCD 1
- Pizza Problem
- Print the last k nodes of the linked list in reverse order | Recursive approach
- Make Binary Search Tree
- Filling diagonal to make the sum of every row, column and diagonal equal of 3x3 matrix
- Find the product of first k nodes of the given Linked List
- Split the array into equal sum parts according to given conditions
- Sum of all the Boundary Nodes of a Binary Tree
- Maximum number of segments that can contain the given points
- Maximize the maximum among minimum of K consecutive sub-arrays
- Find index i such that prefix of S1 and suffix of S2 till i form a palindrome when concatenated
- Search element in a Spirally sorted Matrix
- Count of numbers between range having only non-zero digits whose sum of digits is N and number is divisible by M
- Print k different sorted permutations of a given array
- Find the maximum value permutation of a graph
- DFA for strings not containing consecutive two a's and starting with 'a'
- Schedule elevator to reduce the total time taken
- Anti Clockwise spiral traversal of a binary tree
- Maximum length subarray with difference between adjacent elements as either 0 or 1
- Find Nth positive number whose digital root is X
- Print the lexicographically smallest DFS of the graph starting from 1
- Minimum number of given powers of 2 required to represent a number
- Position of a person diametrically opposite on a circle
- Count the Number of Binary Search Trees present in a Binary Tree
- Count numbers in range 1 to N which are divisible by X but not by Y
- Sum of bitwise AND of all submatrices
- Sum of Bitwise-OR of all Submatrices
- Sum of minimum element of all sub-sequences of a sorted array
- Sum of minimum element of all subarrays of a sorted array
- Count Numbers in Range with difference between Sum of digits at even and odd positions as Prime
- Maximum occurrence of prefix in the Array
- Count of all even numbers in the range [L, R] whose sum of digits is divisible by 3
- Chessboard Pawn-Pawn game
- Count numbers which are divisible by all the numbers from 2 to 10
- Ways to place 4 items in n^2 positions such that no row/column contains more than one
- Find the count of numbers that can be formed using digits 3, 4 only and having length at max N.
- Ways to form a group from three groups with given constraints
- Number of ways to pair people
- Minimum length substring with exactly K distinct characters
- Find the first maximum length even word from a string
- Minimum number of bracket reversals needed to make an expression balanced | Set - 2
- Count permutations that are first decreasing then increasing.
- Longest subarray such that adjacent elements have at least one common digit | Set - 2
- Number of ways to remove elements to maximize arithmetic mean
- Distinct state codes that appear in a string as contiguous sub-strings
- Find the sum of all Truncatable primes below N
- Count maximum elements of an array whose absolute difference does not exceed K
- Minimum value among AND of elements of every subset of an array
- Minimum length of square to contain at least half of the given Coordinates
- Maximum count of pairs which generate the same sum
- Find foot of perpendicular from a point in 2 D plane to a Line
- Find a pair from the given array with maximum nCr value
- Print a number as string of 'A' and 'B' in lexicographic order
- Find a distinct pair (x, y) in given range such that x divides y
- Largest number N which can be reduced to 0 in K steps
- Sort elements of the array that occurs in between multiples of K
- Check if the given binary tree has a sub-tree with equal no of 1's and 0's | Set 2
- Queries to return the absolute difference between L-th smallest number and the R-th smallest number
- Perform K of Q queries to maximize the sum of the array elements
- Create a mirror tree from the given binary tree
- Maximum sub-tree sum in a Binary Tree such that the sub-tree is also a BST
- Construct Binary Tree from given Parent Array representation | Iterative Approach
- Find the maximum number of composite summands of a number
- Count nodes with two children at level L in a Binary Tree
- Number of ways to go from one point to another in a grid
- Minimum array elements to be changed to make Recaman's sequence
- Reverse Clockwise spiral traversal of a binary tree
- Kth node in Diagonal Traversal of Binary Tree
- Iterative approach to check if a Binary Tree is Perfect
- Iterative approach to check for children sum property in a Binary Tree
- Recursive Program to Print extreme nodes of each level of Binary Tree in alternate order
- Reverse alternate levels of a perfect binary tree using Stack
- Print all leaf nodes of a binary tree from right to left
- Given an array and two integers l and r, find the kth largest element in the range [l, r]
- Find sum of even and odd nodes in a linked list
- Minimum steps to color the tree with given colors
- XOR of all the elements in the given range [L, R]
- Find the number of integers from 1 to n which contains digits 0's and 1's only
- Find maximum in stack in O(1) without using additional stack
- Find number of edges that can be broken in a tree such that Bitwise OR of resulting two trees are equal
- Sum of nodes in a linked list which are greater than next node
- Count the number of pairs (i, j) such that either arr[i] is divisible by arr[j] or arr[j] is divisible by arr[i]
- Total number of triangles formed when there are H horizontal and V vertical lines
- Count distinct points visited on the number line
- Length of the longest increasing subsequence such that no two adjacent elements are coprime
- Iterative selection sort for linked list
- Print path from root to all nodes in a Complete Binary Tree
- Find (1^n + 2^n + 3^n + 4^n) mod 5 | Set 2
- Insert N elements in a Linked List one after other at middle position
- Sum of all distinct nodes in a linked list
- Sum of smaller elements of nodes in a linked list
- Queries to answer the number of ones and zero to the left of given index
- Minimum possible final health of the last monster in a game
- Divide array into two parts with equal sum according to the given constraints
- Remove the first and last character of each word in a string
- Check if all the 1's in a binary string are equidistant or not
- Check if two strings are same ignoring their cases
- Split the array elements into strictly increasing and decreasing sequence
- Find the number of divisors of all numbers in the range [1, n]
- Check if matrix A can be converted to B by changing parity of corner elements of any submatrix
- Find the sum of leafs at maximum level
- Queries to update a given index and find gcd in range
- Maximum length palindrome that can be created with characters in range L and R
- Check if string can be made lexicographically smaller by reversing any substring