The insertion sort algorithm is a simple and efficient sorting algorithm. In this algorithm, we “insert” each element into it’s sorted position. We consider two Continue Reading

# Coding Challenge

## Euclid Algorithm

The Euclid Algorithm is used to find the GCD (Greatest Common Divisor) of two numbers i.e. the largest number the divides both the numbers. For Continue Reading

## Quick Sort Algorithm

Sorting in the computer science basically is arranging elements in increasing or decreasing order. Quick Sort (also called Partition exchange sort) is a sorting algorithm Continue Reading

## Coding Challenge Day- 34: Problem 1: Print a Pyramid Pattern for a given number of rows

Hello! So I’m doing a 30 day coding challenge where I solve a few questions every day and thought of posting them here on my Continue Reading

## Coding Challenge Day-33: Problem 2: Post-Order Traversal of Binary Tree

Hello! So I’m doing a coding challenge where I solve a few questions every day and thought of posting them here on my blog so Continue Reading

## Coding Challenge Day- 33: Problem 1: Pre-order Traversal of a Binary Tree

Hello! So I’m doing a 100 day coding challenge where I solve a few questions every day and thought of posting them here on my Continue Reading

## Coding Challenge Day-32: Problem 2: Zigzag Conversion

Hello! So I’m doing a 30 day coding challenge where I solve a few questions every day and thought of posting them here on my Continue Reading

## Coding Challenge Day- 32: Problem 1: Nearest Smallest Element to the Right in an Integer array

Hello! So I’m doing a 100 day coding challenge where I solve a few questions every day and thought of posting them here on my Continue Reading

## Coding Challenge Day- 31: Problem 2: Nearest Smallest Element to the Left in an Integer array

Hello! So I’m doing a 30 day coding challenge where I solve a few questions every day and thought of posting them here on my Continue Reading

## Coding Challenge Day- 31: Problem 1: Nearest Greatest Element to the Left in an Integer array

## Coding Challenge Day-30: Problem 2: Nearest Greater to right

## Coding Challenge Day-30: Problem 1: Check if parenthesis in expression are balanced

## Coding Challenge Day- 29: Problem 1: Array representation of complete Binary Tree

## Coding Challenge Day-28: Problem 1: Building a GUI in Java

## Coding Challenge Day-27: Problem 1: TicTacToe Game

## Coding Challenge Day 26- Problem 1: Word Guess Game

## Coding Challenge Day-25: Problem 1: Replace nth occurance of a substring in a String

Hello! So I’m doing a 100 day coding challenge where I solve a few questions every day and thought of posting them here on my Continue Reading

## Coding Challenge Day- 24: Problem 1: Push ‘null’ to end of String array

## Coding Challenge Day 23: Problem 2: Scramble or Remove

## Coding Challenge Day- 23: Problem 1: Scramble List

## Coding Challenge Day- 22: Problem 1: Find length of linked list (Recursive)

## Coding Challenge Day- 21: Problem 2: Reverse each word of String

## Coding Challenge Day- 21: Problem 1: The Stock Span Problem

## Coding Challenge Day 20- Problem 1: Convert a given number to it’s Roman numeral equivalent

## Coding Challenge Day-19: Problem 2: Find second largest number in integer array

## Coding Challenge Day-19: Problem 1: Swap two numbers without using third variable

## Coding Challenge Day- 18: Problem 2: Implement Merge Sort

## Coding Challenge Day-18: Problem 1: Check if given Tree is Binary Search Tree

## Coding Challenge Day- 17: Problem 2: Generate an integer array with random numbers

## Coding Challenge Day- 17: Problem 1: How to find all pairs in array integer whose sum is equal to a given number

## Coding Challenge Day-16: Problem 1: Deleting leaf node in a Binary Search Tree

## Coding Challenge Day-15: Problem 2: Insert an element in a Binary Search Tree

## Coding Challenge Day-15: Problem 1: Search for element in Binary Search Tree

## Coding Challenge Day- 14: Problem 1: Find the level that has maximum number sum in the Binary tree

## Coding Challenge Day-13: Problem 2: The FizzBuzz Problem

## Coding Challenge Day-13: Problem 1: Level-order traversal of a Binary tree

## Coding Challenge Day- 12: Problem 2: Reverse The String With Preserving The Position Of Spaces

## Coding Challenge Day- 12: Problem 1: Find the duplicate words and their number of occurrences in a string

## Coding Challenge Day 11- Problem 1: Palindrome String

Hello! So I’m doing a 30 day coding challenge where I solve around 3-5 questions per day and thought of posting them here on my Continue Reading

## Coding Challenge Day-10: Problem 1: Display the kth smallest element in an integer array

Hello! So I’m doing a 30 day coding challenge where I solve around 3-5 questions per day and thought of posting them here on my Continue Reading

## Coding Challenge Day-9: Problem 2: Find whether a given number is a power of three

Hello! So I’m doing a 30 day coding challenge where I solve around 3-5 questions per day and thought of posting them here on my Continue Reading

## Coding Challenge Day-9: Problem 1: Find first non-repeating character in String

## Coding Challenge Day 8: Problem 2: Binary Search

## Coding Challenge 8: Problem 1: Check whether a Matrix is a Latin Square or not

## Coding Challenge Day 7: Problem 3: Convert given Matrix into sorted Spiral Matrix

## Coding Challenge Day-7: Problem 2: Find character(s) with maximum recurrence in a string

## Coding Challenge Day 7: Problem 1: Calculate height of a Binary Tree

## Coding Challenge Day-6: Problem 2: Program to Interchange Diagonals of Matrix

## Coding Challenge Day-6: Problem 1: Find the product of sum of two diagonals of a square Matrix

## Coding Challenge Day-5: Problem 2: Check if one string is a rotation of another

Hello! So I’m doing a 30 day coding challenge where I solve a few questions everyday and thought of posting them here on my blog Continue Reading

## Coding Challenge Day-5: Problem 1: If an element in an MxN matrix is zero, it’s entire row and column are set to zero

## Coding Challenge Day-4: Problem 3: Rotate Image(matrix) by 90 degrees

## Coding Challenge Day-4: Problem 2: Replace all spaces in a string with ‘%20’

## Coding Challenge Day-4: Problem 1: Perform basic string compression using counts of repeated characters

## Coding Challenge Day-3: Problem 3: Search for an element in a Binary tree

## Coding Challenge Day-3: Problem 2: Find maximum the element in a Binary tree

## Coding Challenge Day-3: Problem 1: Check if two strings are permutation of each other

## Coding Challenge Day-2: Problem 3: Reverse a String

## Coding Challenge Day-2: Problem 2: Determine if a String has all unique characters

## Coding Challenge Day-2: Problem 1: Find missing number in integer array from 1 to 100

## Coding Challenge Day-2: Problem 2: Evaluate a given posfix expression

Hello! So I’m doing a 30 day coding challenge where I solve a few questions everyday and thought of posting them here on my blog Continue Reading