coding challenge
[Solved] Program to Find Pairs that have Desired Sum in Java
Problem Statement: Consider an array of integers that may contain both positive and negative integers, called numbers. Write a program that finds all the pairs of integers whose...
[Solved] Maximum Sum Subarray | Microsoft Interview Question
Problem Statement / Task: You are given an array of integers (includes both positive and negative numbers). You have to find the sum of that subarray that has the highest sum...
[Solved] Sort the String According to the Frequency of Character in Java
Problem Statement / TASK: You are given a string and your task is to sort the string according to the frequency of character and return the final string. EXAMPLE 1 : Input...
[Solved] Sort the Circular Rotated Array in O(n) Time| Algorithm | Code
Problem statement: You have given a circular rotated array. Write a program to sort the circular rotated array. Example Input (Circular Rotated Array): Output (Sorted...
Regular Expression to Validate PAN Card Number in Python
Problem Statement: Write a regular expression to validate PAN card number in Python programming. M Stark works in the sales department. He has a paragraph P of words that...
Validate IP Address using RegEx in Python
Problem Statement: Write a Python program to validate if the given string is a valid IP address or not. This is one of the questions asked in Juniper coding interview. In...
Find Longest Balanced Subarray from String of Curly Braces
You have given a string which contains the curly braces (brackets), both opening and closing braces. You have to find the length of the longest balanced...
Python Tricks for Competitive Programming
1. Sort List of Tuples by Second Value in Reverse Order val = val.sort(key = lambda x: x, reverse=True) print(val) Reference: Sort List of Tuples by First/Second...
[Solved] Minimum Number of Coins Required to Make Given Amount
Problem Statement: You have given a set of coins. Write a program to find the minimum number of coins required to match the given amount value. Example You have coins 1, 5,...