Coding is funny thing.Do it, Enjoy it.
Pinned Loading
-
-lexicographically-smallest-and-largest-substrings
-lexicographically-smallest-and-largest-substrings PublicIn this we will find the lexicographically smallest and largest substrings of length K from the given string
-
In this we will find the lexicograph...
In this we will find the lexicographically smallest and largest substrings of length k from the given string 1import java.util.Scanner;
23public class Solution {45public static String getSmallestAndLargest(String s, int k) { -
Longest-Common-Subsequence
Longest-Common-Subsequence PublicIn this by taking two array we will find out the longest sequence which is common to both the arrays
-
Left-Array-Rotation
Left-Array-Rotation PublicIn this we are given an array a of n integers and a number d and we have to perform d left rotations on the array and return the updated array to be printed as a single line of space-separated inte…
-
Longest-Valid-Paranthesis
Longest-Valid-Paranthesis PublicGiven a string S consisting of opening and closing parenthesis '(' and ')' we have to find the length of the longest valid parenthesis substring.
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.