Algorithms
Algorithms copied to clipboard
A Repository for algorithms in C, C++, Python and Java
Feature : Given an integer array and an integer difference, return the length of the longest subsequence in array which is an arithmetic sequence such that the difference between adjacent...
Problem Statement Given number of pages in n different books and m students. The books are arranged in ascending order of number of pages. Every student is assigned to read...
PERFECT NUMBER In number theory, a perfect number is a positive integer that is equal to the sum of its positive divisors, excluding the number itself. Here the problem is...
**Problem:** You are given N binary strings of length N each. You need to find a binary string of length N which is different from all of the given strings....
**Is your feature request related to a problem?** No, it is related to the enhancement,since I noticed that the README does not mention the PR template, which can make it...
**Is your feature request related to a problem? Please describe.** This program will take in a regular expression with applicable operations i.e `+` , `.` , `()` and `*` in...
**Is your feature request related to a problem? Please describe.** Triangular Number evaluation is missing in the algorithm. **Describe the solution you'd like** A number is termed as triangular number...
**This algorithm makes sure if a string consisting of parenthesis (including (), {}, []) is valid or not.** **Describe the solution you'd like** Example: [ { ( ) } ]...
@Kumar-laxmi As a part of SSOC'23 please assign me this problem I will explain the code clearly with comments. Approach : Recursion Time Complexity : O(N) Space Complexity : O(N)...
**Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is.? **Bidirectional Dijkstra** is an algorithm that finds the shortest path...