StudyAlgorithms Profile Banner
Study Algorithms Profile
Study Algorithms

@StudyAlgorithms

Followers
95
Following
0
Media
7
Statuses
248

some simple Algorithms to help you...

Joined October 2013
Don't wanna be here? Send us removal request.
@StudyAlgorithms
Study Algorithms
3 years
Most of the string based problems either revolve around a prefix or a suffix. A prefix is a character or a sequence of characters that occur in the beginning of a string. In this problem we try to find the longest common prefix in an array of strings.
studyalgorithms.com
Given some input strings, we need to find the longest common prefix or the longest starting sequence of characters that is common
0
0
2
@StudyAlgorithms
Study Algorithms
3 years
Given an array of positive integers with some zeroes. You need to move all the zeroes to the end without changing the relative order of non-zero elements. A unique solution makes this problem really easy to understand.
studyalgorithms.com
Given an integer array that may have some zeroes. Move all the zeroes to the right while maintaining the original order
0
0
0
@StudyAlgorithms
Study Algorithms
3 years
Binary Search is a fabulous concept that can be used to narrow down the search range. One such problem on LeetCode explores this domain where you need to find the correct position to insert the element in a sorted array
studyalgorithms.com
Given a sorted array and a target value, search for the position where we must insert the number so that the order is maintained.
0
0
0
@StudyAlgorithms
Study Algorithms
4 years
Using binary search to find the first and last index of a target element in a sorted array.
0
0
0
@StudyAlgorithms
Study Algorithms
4 years
[Hackerrank] - Number Line Jumps Solution Two kangaroos 🦘 start from different positions on a number line. We need to determine if they can reach at the same position at any given point of time. The problem can be easily solved by using basic maths.
studyalgorithms.com
Given two kangaroos and a number line, you need to determine if they can reach the same position consecutively after some jumps
0
0
1
@StudyAlgorithms
Study Algorithms
4 years
Delete a node in Linked List. In this post we discuss how you can delete a node from the beginning, end and somewhere in the middle. All of this involves playing with pointers.
studyalgorithms.com
Given a linked list, you can delete a node at 3 different places, at the beginning, at the end or from the middle. Understand with video.
0
0
1
@StudyAlgorithms
Study Algorithms
4 years
Given an array with some values, you need to equalize them with the minimum number of operations. An operation is counted as incrementing all values by 1, 2 or 5 except 1.
0
0
0
@StudyAlgorithms
Study Algorithms
5 years
[Hackerrank] - Making Anagrams Solution Given two strings, determine the total number of characters to be deleted such that they become anagrams. We use counting sort to create buckets of each character frequency to derive an optimal solution.
studyalgorithms.com
Given two strings, you need to determine the minimum number of characters to be deleted to make them anagrams of each other.
0
0
0
@StudyAlgorithms
Study Algorithms
5 years
[Hackerrank] - Repeated String Solution Given a string that is repeated infinite number of times, find the count of letter 'a' in the first 'n' characters. This problem requires a bit of logical thinking and can be evaluated using mathematics.
studyalgorithms.com
Given a lowercase string, find the number of times the letter 'a' is repeated in the first 'n' characters of the infinite string.
0
0
0
@StudyAlgorithms
Study Algorithms
5 years
The idea behind a standard queue can be used to develop other flavors which can help in problem solving. Different uses cases can take advantage of the FIFO principle. This post touches the surface of these data structures.
studyalgorithms.com
There can be different types of queue, deriving from a same basic idea. This post explains where can you use these different flavors of queue
0
0
1
@StudyAlgorithms
Study Algorithms
5 years
[Leetcode] : Find All Duplicates in an Array Solution Given an array of integers, find the elements that appear twice. The main challenge of this problem is to solve it without using any extra space.
0
0
0
@StudyAlgorithms
Study Algorithms
5 years
You are in charge of birthday cake candles at a party. However, when the child blows, only the tallest candles are put out. Read this post to find how many tallest candles are present on the cake with a full implementation of code and video explanation.
studyalgorithms.com
You are in charge of birthday cake candles for a child's birthday. Count the number of tallest candles that can be blown out.
0
0
0
@StudyAlgorithms
Study Algorithms
5 years
Given an array of strings strs, you need to group all the anagrams together. You can return the answer in any order. You can either group by sorting the characters or by frequency. The latter gives you a better time complexity.
studyalgorithms.com
Given an array of strings, group all the anagrams together, return the output as a list of group of strings. It can be in any order.
0
0
0
@StudyAlgorithms
Study Algorithms
5 years
[Leetcode] - Search in a Rotated Sorted Array Solution Read this post to find the index of the target element using a modified version of the binary search technique. If the element is not found, you simply need to return a -1.
studyalgorithms.com
You are given a rotated sorted array with distinct integers and a target value. Return the index if the target is present.
0
0
0
@StudyAlgorithms
Study Algorithms
5 years
[Leetcode] - Two Sum Solution, A very important question for your interviews as it tests out your logical thinking capabilities. Read the post to learn 3 different methods of solving this problem.
studyalgorithms.com
From an array of integers find two integers which sum up to a given target. You can assume that there is just one solution.
0
0
0