Posts

Consecutive Numbers - SQL

Rank Scores - SQL

Nth Highest Salary - SQL

Second Highest Salary - SQL

Combine Two Tables - SQL

Find the Duplicate Number - C Solution

Sort Colors - C Solution

Maximum Subarray - C Solution

First Missing Positive - C Solution

Next Permutation - C Solution

Decode String - C Solution

Min Stack - C Solution

Largest Rectangle in Histogram - C Solution

Rotate Image - C Solution

Swap Nodes in Pairs - C Solution

Linked List Cycle - C Solution

Sort List - C Solution

Intersection of Two Linked Lists - C Solution

Palindrome Linked List - C Solution

Reverse Linked List - C Solution

Palindrome Permutation - C Solution

Shortest Word Distance - C Solution

Largest Number - C Solution

Longest Substring with At Most Two Distinct Characters - C Solution

Length of Last Word - C Solution

Substring with Concatenation of All Words - C Solution

Find the Index of the First Occurrence in a String - C Solution

Generate Parentheses - C Solution

Letter Combinations of a Phone Number - C Solution

Surrounded Regions - C Solution

Number of Islands - C Solution

Remove Nth Node From End of List - C Solution

Reverse Linked List II - C Solution

Merge Two Sorted Lists - C Solution

Add Two Numbers - C Solution

Basic Calculator - C Solution

Evaluate Reverse Polish Notation - C Solution

Simplify Path - C Solution

Valid Parentheses - C Solution

Minimum Number of Arrows to Burst Balloons - C Solution

Insert Interval - C Solution

Summary Ranges - C Solution

Longest Consecutive Sequence - C Solution

Happy Number - C Solution

Two Sum - C Solution

Valid Anagram - C Solution

Isomorphic Strings - C Solution

Ransom Note - C Solution

Game of Life - C Solution

Set Matrix Zeroes - C Solution

Spiral Matrix - C Solution

Valid Sudoku - C Solution

Longest Substring Without Repeating Characters - C Solution

Container With Most Water - C Solution

Is Subsequence - C Solution

Valid Palindrome - C Solution

Find the Index of the First Occurrence in a String - C Solution

Zigzag Conversion - C Solution

Reverse Words in a String - C Solution

Longest Common Prefix - C Solution

Length of Last Word - C Solution

Roman to Integer - C Solution

Trapping Rain Water - C Solution

Candy - C Solution

Gas Station - C Solution

Product of Array Except Self - C Solution

H-Index - C Solution

Jump Game - C Solution

Best Time to Buy and Sell Stock II - C Solution

Best Time to Buy and Sell Stock - C Solution

Rotate Array - C Solution

Majority Element - C Solution

Remove Element - C Solution

Remove Duplicates from Sorted Array - C Solution

Remove Duplicates from Sorted Array II - C Solution

Merge Sorted Array - C Solution

Find All Anagrams in a String - Python Solution

Reverse Vowels of a String - Python Solution

Unique Word Abbreviation - Python Solution

Palindrome Permutation - Python Solution

Group Shifted Strings - Python Solution

Shortest Word Distance - Python Solution

Longest Substring with At Most Two Distinct Characters - Python Solution

Reverse Words in a String - Python Solution

Longest Palindromic Substring - Python Solution

Longest Substring Without Repeating Characters - Python Solution

Find the Duplicate Number - Python Solution

Rotate Array - Python Solution

Majority Element - Python Solution

Single Number - Python Solution

Sort Colors - Python Solution

Merge Intervals - Python Solution

Maximum Subarray - Python Solution

First Missing Positive - Python Solution

Next Permutation - Python Solution

Move Zeroes - Python Solution

Trapping Rain Water - Python Solution

Decode String - Python Solution

Min Stack - Python Solution

Largest Rectangle in Histogram - Python Solution

Valid Parentheses - Python Solution

Find All Anagrams in a String - Python Solution

Minimum Window Substring - Python Solution

Longest Substring Without Repeating Characters - Python Solution

Search a 2D Matrix II - Python Solution

Set Matrix Zeroes - Python Solution

Spiral Matrix - Python Solution

Palindrome Linked List - Python Solution

Palindrome Linked List - Python Solution

Reverse Linked List - Python Solution

Intersection of Two Linked Lists - Python Solution

LRU Cache - Python Solution

Linked List Cycle - Python Solution

Copy List with Random Pointer - Python Solution

Reverse Nodes in k-Group - Python Solution

Swap Nodes in Pairs - Python Solution

Merge k Sorted Lists - Python Solution

Merge Two Sorted Lists - Python Solution

Remove Nth Node From End of List - Python Solution

Add Two Numbers - Python Solution

Top K Frequent Elements - Python Solution

Find Median from Data Stream - Python Solution

Subarray Sum Equals K - Python Solution

Longest Consecutive Sequence - Python Solution

Group Anagrams - Python Solution

Two Sum - Python Solution

Partition Labels - Python Solution

Best Time to Buy and Sell Stock - Python Solution

Jump Game - Python Solution

Jump Game II - Python Solution

Rotting Oranges - Python Solution

Course Schedule - Python Solution

Number of Islands - Python Solution

Longest Common Subsequence - Python Solution

Partition Equal Subset Sum - Python Solution

Longest Increasing Subsequence - Python Solution

Perfect Squares - Python Solution

House Robber - Python Solution

Word Break - Python Solution

Pascal's Triangle - Python Solution

Climbing Stairs - Python Solution

Minimum Path Sum - Python Solution

Unique Paths - Python Solution

Longest Valid Parentheses - Python Solution

Longest Palindromic Substring - Python Solution

Diameter of Binary Tree - Python Solution

Path Sum III - Python Solution

Lowest Common Ancestor of a Binary Tree - Python Solution

Binary Tree Right Side View - Python Solution

Invert Binary Tree - Python Solution

Flatten Binary Tree to Linked List - Python Solution

Convert Sorted Array to Binary Search Tree - Python Solution

Construct Binary Tree from Preorder and Inorder Traversal - Python Solution

Maximum Depth of Binary Tree - Python Solution

Binary Tree Level Order Traversal - Python Solution

Symmetric Tree - Python Solution

Validate Binary Search Tree - Python Solution

Binary Tree Inorder Traversal - Python Solution

Find Minimum in Rotated Sorted Array - Python Solution

Binary Tree Maximum Path Sum - Python Solution

Search a 2D Matrix - Python Solution

Find First and Last Position of Element in Sorted Array - Python Solution

Search in Rotated Sorted Array - Python Solution

Median of Two Sorted Arrays - Python Solution

Palindrome Partitioning - Python Solution

Word Search - Python Solution

Subsets - Python Solution

N-Queens - Python Solution

Permutations - Python Solution

Combination Sum - Python Solution

Generate Parentheses - Python Solution

Letter Combinations of a Phone Number - Python Solution

Rotate Array - Java Solution

Majority Element - Java Solution

Single Number - Java Solution

Sort Colors - Java Solution

Merge Intervals - Java Solution

Maximum Subarray - Java Solution

First Missing Positive - Java Solution

Next Permutation - Java Solution

Implement Trie (Prefix Tree) - Java Solution

Move Zeroes - Java Solution

Trapping Rain Water - Java Solution

Decode String - Java Solution

Min Stack - Java Solution

Largest Rectangle in Histogram - Java Solution

Valid Parentheses - Java Solution

Find All Anagrams in a String - Java Solution

Sliding Window Maximum - Java Solution

Minimum Window Substring - Java Solution

Search a 2D Matrix II - Java Solution

Set Matrix Zeroes - Java Solution

Palindrome Linked List - Java Solution

Reverse Linked List - Java Solution

Intersection of Two Linked Lists - Java Solution

Sort List - Java Solution

LRU Cache - Java Solution

Linked List Cycle - Java Solution

Copy List with Random Pointer - Java Solution

Reverse Nodes in k-Group - Java Solution

Swap Nodes in Pairs - Java Solution

Merge k Sorted Lists - Java Solution

Merge Two Sorted Lists - Java Solution

Remove Nth Node From End of List - Java Solution

Add Two Numbers - Java Solution

Top K Frequent Elements - Java Solution

Find Median from Data Stream - Java Solution

Kth Largest Element in an Array - Java Solution

Subarray Sum Equals K - Java Solution

Longest Consecutive Sequence - Java Solution

Group Anagrams - Java Solution

Two Sum - Java Solution

Partition Labels - Java Solution

Best Time to Buy and Sell Stock - Java Solution

Jump Game - Java Solution

Jump Game II - Java Solution

Rotting Oranges - Java Solution

Course Schedule - Java Solution

Number of Islands - Java Solution

Longest Common Subsequence - Java Solution

Partition Equal Subset Sum - Java Solution

Coin Change - Java Solution

Longest Increasing Subsequence - Java Solution

Perfect Squares - Java Solution

House Robber - Java Solution

Maximum Product Subarray - Java Solution

Word Break - Java Solution

Pascal's Triangle - Java Solution

Climbing Stairs - Java Solution

Minimum Path Sum - Java Solution

Unique Paths - Java Solution

Longest Valid Parentheses - Java Solution

Longest Palindromic Substring - Java Solution

Diameter of Binary Tree - Java Solution

Path Sum III - Java Solution

Lowest Common Ancestor of a Binary Tree - Java Solution

Binary Tree Right Side View - Java Solution

Invert Binary Tree - Java Solution

Flatten Binary Tree to Linked List - Java Solution

Convert Sorted Array to Binary Search Tree - Java Solution

Construct Binary Tree from Preorder and Inorder Traversal - Java Solution

Maximum Depth of Binary Tree - Java Solution

Binary Tree Level Order Traversal - Java Solution

Symmetric Tree - Java Solution

Validate Binary Search Tree - Java Solution

Binary Tree Inorder Traversal - Java Solution

Find Minimum in Rotated Sorted Array - Java Solution

Binary Tree Maximum Path Sum - Java Solution

Search a 2D Matrix - Java Solution

Find First and Last Position of Element in Sorted Array - Java Solution

Search in Rotated Sorted Array - Java Solution

Median of Two Sorted Arrays - Java Solution

Palindrome Partitioning - Java Solution

Word Search - Java Solution

Subsets - Java Solution

N-Queens - Java Solution

Permutations - Java Solution

Combination Sum - Java Solution

Generate Parentheses - Java Solution

Letter Combinations of a Phone Number - Java Solution

Set Matrix Zeroes - Java Solution

Rotate Image - Java Solution

Spiral Matrix - Java Solution

Valid Sudoku - Java Solution

Minimum Window Substring - Java Solution

Substring with Concatenation of All Words - Java Solution

Longest Substring Without Repeating Characters - Java Solution

Minimum Size Subarray Sum - Java Solution

3Sum - Java Solution

Container With Most Water- Java Solution

Two Sum - Java Solution

Is Subsequence - Java Solution

Valid Palindrome - Java Solution

Remove Element Problem and Solution

Remove Duplicates from Sorted Array Problem and Solution

Swap Nodes in Pairs Problem and Solution

Generate Parentheses Problem and Solution

Merge Two Sorted Lists Problem and Solution

Valid Parentheses Problem and Solution

Remove Nth Node From End of List Problem and Solution

4Sum Problem and Solution

Letter Combinations of a Phone Number Problem and Solution

3Sum Closest Problem and Solution

3Sum Problem and Solution

Longest Common Prefix Problem and Solution

Roman to Integer Problem and Solution

Integer to Roman Problem and Solution

Container With Most Water Problem and Solution

Regular Expression Matching Problem and Solution

Palindrome Number Problem and Solution

String to Integer Problem and Solution

Zigzag Conversion Problem and Solution

Reverse Integer Problem and Solution

Longest Palindromic Substring Problem and Solution

Median of Two Sorted Arrays Problem and Solution

Two Sum Problem and Solution

Add Two Numbers Problem and Solution

Two Sum - LeetCode Solution in C++

Text Justification - LeetCode Solution in C++, Java, Python

Find the Index of the First Occurrence in a String - LeetCode Solution in C++, Java, Python

Zigzag Conversion - LeetCode Solution in C++, Java, Python

Reverse Words in a String - LeetCode Solution in C++, Java, Python

Longest Common Prefix - LeetCode Solution in C++, Java, Python

Length of Last Word - LeetCode Solution in C++, Java, Python

Integer to Roman - LeetCode Solution in C++, Java, Python

Roman to Integer - LeetCode Solution in C++, Java, Python

Trapping Rain Water - LeetCode Solution in C++, Java, Python

Candy - LeetCode Solution in C++, Java, Python

Gas Station - LeetCode Solution in C++, Java, Python

Product of Array Except Self - LeetCode Solution in C++, Java, Python

Insert Delete GetRandom O(1)

H-Index - LeetCode Solution in C++, Java, Python

Jump Game - LeetCode Solution in C++, Java, Python

Best Time to Buy and Sell Stock - LeetCode Solution in C++, Java, Python

Rotate Array - LeetCode Solution in C++, Java, Python

Majority Element - LeetCode Solution in C++, Java, Python

Remove Duplicates from Sorted Array - LeetCode Solution in C++, Java, Python

Remove Element - LeetCode Solution in C++, Java, Python

Merge Sorted Array - LeetCode Solution in C++, Java, Python

Palindrome Partitioning - LeetCode Solution in Java

Word Search - LeetCode Solution in Java

Subsets - LeetCode Solution in Java

N-Queens - LeetCode Solution in Java

Permutations - LeetCode Solution in Java

Combination Sum - LeetCode Solution in Java

Generate Parentheses - LeetCode Solution in Java

Letter Combinations of a Phone Number - LeetCode Solution in Java

Two Sum - LeetCode Solution in Java

Java String stripIndent Example

Java String lines Example

Java String repeat Example

Java String strip Example

Java String isBlank Example

Java Files.readString() and Files.writeString() Example

Java FileSystems.newFileSystem() Method Example

Collectors.teeing() in Stream API Example

Pattern Matching for Switch Example

Java Vector API Example

Java CompactNumberFormat Class Example

Java var Keyword Example

Java Sealed Class Switch Example

Java Sealed Class Enum Example

Java Sealed Class Generic Example

Java Sealed Class Record Example

Java Sealed Class vs Final Class

Java Sealed Class Example

Java Pattern Matching for instanceof

Java Switch Expressions Example

Java Record Implement Interface Example

Java Records with Spring Boot CRUD Example

Java Record Custom equals and hashCode

Java Record Custom toString

Java Record Custom Methods

Java Records CRUD (Create, Read, Update, Delete) Example

Java Record Default Constructor

Java Record Getter Example

Java Record Serializable Example

Java Record Constructor Validation Example

Java Record Constructor Example

Java Record Builder Pattern Example

Java Text Blocks Example

Java Record Class Example

Write a R program to fit a linear regression

Write a R program for Chi-square test

Write a R program for F test

Write a R program for t test

Write a R program for Z test

Write a R program to fit Poisson distribution to the given data

Write a R program to fit Binomial distribution to the given data

Write a R program to represent the given data in the form of graphs using built in functions

Write a R program to mean, variance, standard deviation for the given continuous probability distribution

Write a R program to mean, variance, standard deviation for the given discrete probability distribution

Write a R program to find gcd of two numbers using recursion

Write a R program to find factorial of a number using recursion

Write a R program to find sum of elements of vector

Write a R program to find roots of a quadratic equation

Write a R program to find biggest of three elements

Write a R program to store data into Data frame and perform different operations

Write a R program to store data into a List and perform different operations

Write a R program to perform different operations on Matrices

Write a R program to find measures of central tendency

Write a R program to concatenate two given factor in a single factor

Write a R program to find the levels of factor of a given vector

User Write a R program to create a two-dimensional 5x3 array of sequences of even integers greater than 50

Write a R program to create a data frame from four given vectors

Write a R program to create an empty data frame

Write a R program to merge two given lists into one list

Write a R program to select second element of a given nested list

Write a R program to concatenate two given matrices of same column but different rows

Write a R program to create a matrix from a list of given vectors

Write a R program to create a 5 x 4 matrix , 3 x 3 matrix with labels and fill the matrix by rows and 2 × 2 matrix with labels and fill the matrix by columns

Write a R program to create three vectors a,b,c with 3 integers. Combine the three vectors to become a 3×3 matrix where each column represents a vector. Print the content of the matrix

Write a R program to find Sum, Mean and Product of a Vector, ignore element like NA or NaN

Write a R program to multiply two vectors of integers type and length 3

Write a R program to append value to a given empty vector

Write a R program to get the unique elements of a given string and unique numbers of vector

Write a R program to append value to a given empty vector

Write a R program to create a simple bar plot of five subjects marks

Write a R program to create a sequence of numbers from 20 to 50 and find the mean of numbers from 20 to 60 and sum of numbers from 51 to 91

Write a R program to get the details of the objects in memory

Write a R program to take input from the user (name and age) and display the values. Also print the version of R installation

Write a python program to check whether the user given input is equal to the current working directory or not

Write a python program to convert a list to tuple using tuple function

Write a python program to reverse a given list

Write a python program to add elements to an existing list from user input

Write a python program to create a simple list and nested list with different datatypes

Write a python program to repeat a givent string multiple times

Write a python program to return a string such that the string is arranged from lowercase letters and then uppercase letters

Write a python program to concatenate strings in different ways

Write a Python program to Check whether the given string startswith 'h'

Write a Python program to Split a given string on asterisk into several substrings and display each substring

Given an input string, count occurrences of all characters within a string and return the details as dictionary

Write a Python program to Find all occurrences in a given string ignoring the case

Write a Python program to Count all lower case, upper case, digits, and special symbols from a given string

Arrange string characters such that lowercase letters should come first

Given a string of odd length greater 7, return a string made of the middle three chars of a given String

Write a python program to find the max values in a list using function

Write a python program to print a simple list using functions

Write a python program to demonstrate the use of keyword arguments

Write a python program to demonstrate the use of default arguments

Wrtie a python program to demonstrate the use of variable length arguments

Write a python program to find absolute value using function

Write a python program to remove vowels in a word

Write a python program to print right angle triangle pattern using *

Write a python program to get the sum of digits

Write a python program to print the square of all numbers from 1 to 10

Write a python program to print first 20 natural numbers using while loop

Write a python program to traverse a list and print the values in it

Write a python program to find the average of 10 numbers

Write a python program to filter integer, float, string from a list

Write a python program to count the number of digits

Write a python program to check whether the first and last letters of the given word is vowel or not ?

Scala Check Option Has Value

Scala Check if Option Is None

Scala Check if String Is Null or Empty

Scala Check if List Contains Duplicates

Scala Check if List Is Null or Empty

Scala Check if the List Contains an Element

Scala Convert Map to JSON

Scala Convert Date to Epoch

Scala Convert String to Long

Scala Convert String to JSON

Scala Convert String to Timestamp

Scala Convert String to Boolean

Scala Convert String to Int

Scala Convert List to Map

Scala Iterate Over String

Scala Iterate Over List of Objects (Different Ways)

Scala Iterate List With Index

Scala Iterate Over Map (Different Ways)

Scala Iterate Over List (Different Ways)

Scala Iterate Over an Array

Scala - Exception Handling Example

Scala - Tuples Example

Scala Map Methods with Examples

Scala Set Methods with Examples

Scala List Methods with Examples

Scala - Array Functions with Examples

Scala - String Functions with Examples

Scala - Closures Example

Scala - Functions Example

Scala - Loop Statements Example

Scala - IF ELSE Statements Example

Scala - Bitwise Operators Example

Scala - Logical Operators Example

Scala - Relational Operators Example

Scala - Arithmetic Operators Example

Scala - Access Modifiers Example

Scala - Data Types Example

Scala program to calculate leap years

Scala - custom flatMap or map function

Scala program to use Option, Some, and None for null safety

Scala program to implement tail recursion

Scala program to find the intersection of two lists

Scala program to sort a list of numbers

Scala program to remove duplicates from a list

Scala program to find the last element in a list

Scala program to concatenate two lists

Scala program to reverse a list

Scala program to find all divisors of a number

Scala program to find the power of a number

Scala program to find the rotation point in a rotated sorted array

Scala program to find the intersection of two arrays

Scala program to remove duplicates from an array

Scala program to merge two arrays

Scala program to check if an array contains a specific value

Scala program to reverse an array

Scala program to find the sum and average of elements in an array

Scala program to split a string by a delimiter

Scala program to find the longest substring without repeating characters

Scala program to replace all occurrences of a substring

Scala program to check if two strings are anagrams

Scala program to find the common elements in two arrays

Scala program to calculate compound interest

Scala program to convert Celsius to Fahrenheit

Scala program to find the power of a number using recursion

Scala program to remove duplicates from a list

Scala program to count the number of words in a sentence

Scala program to find the sum of digits of a number

Scala program to check if a string is a palindrome