Find All Permutations of a String
OVERVIEW The code given below prints all the possible permutations of a string. It does not check for duplicate occurrences of a character. SAMPLE CODE […]
OVERVIEW The code given below prints all the possible permutations of a string. It does not check for duplicate occurrences of a character. SAMPLE CODE […]
OVERVIEW The objective is to write a function which can identify the longest substring in a string which does not have repeating characters. Examples given […]
OVERVIEW We see how to rotate elements in an array both right and left a certain number of times. We use the mod operator to […]
The code below uses Merge Sort to sort an array of integers The output is shown below 6,78,19,54,32,-9,-10,87,12,31, divide() – 0,9 mid=4 divide() – 0,4 […]
The code below searches for a target integer and returns the index of the array if it is found else it returns a -1. The […]
Copyright © 2024 | WordPress Theme by MH Themes