1,724 articles across 10 categories

Stories, Tutorials & Life Tips

Deep dives on coding, health, recipes, travel and everything in between.

πŸ“ Explore Reading Paths

Follow curated journeys from beginner to expert

Compare Strings by Frequency of the Smallest Character
Featured

Compare Strings by Frequency of the Smallest Character

Let's define a function f(s) over a non-empty string s, which calculates the frequency of the smallest character in s. For example, if s = "dcce" then f(s) = 2 because the smallest character is "c" an…

2 min read4 May 2020
Read article
Maximum Number of Balloons

Maximum Number of Balloons

Given a string text, you want to use the characters of text to form as many instances of the word "balloon" as possible.…

1 min3 May
Split a String in Balanced Strings

Split a String in Balanced Strings

Balanced strings are those who have an equal quantity of 'L' and 'R' characters. Given a balanced string s split it in …

1 min3 May
Decrypt String from Alphabet to Integer Mapping

Decrypt String from Alphabet to Integer Mapping

Given a string s formed by digits ('0' - '9') and '#' . We want to map s to English lowercase characters as follows: Ch…

1 min3 May
Remove Palindromic Subsequences Question with Solution.

Remove Palindromic Subsequences Question with Solution.

Given a string s consisting only of letters 'a' and 'b'. In a single step, you can remove one palindromic subsequence fr…

1 min3 May
Increasing Decreasing String Problem With Solution

Increasing Decreasing String Problem With Solution

Given a string s. You should re-order the string using the following algorithm: Pick the smallest character from s and …

2 min3 May
Generate a String With Characters That Have Odd Counts

Generate a String With Characters That Have Odd Counts

Given an integer n, return a string with n characters such that each character in such string occurs an odd number of ti…

1 min3 May
Find the Destination City

Find the Destination City

You are given the array paths, where paths[i] = [cityAi, cityBi] means there exists a direct path going from cityAi to c…

2 min3 May
String Matching in an Array

String Matching in an Array

Given an array of string words. Return all strings in words which is a substring of another word in any order.  St…

1 min3 May
Reformat The String

Reformat The String

Given alphanumeric string s. (Alphanumeric string is a string consisting of lowercase English letters and digits). You …

2 min3 May
Maximum Score After Splitting a String

Maximum Score After Splitting a String

Given a string s of zeros and ones, return the maximum score after splitting the string into two non-empty substrings (i…

2 min2 May
Top Places to visit in Makhdumpur, Bihar

Top Places to visit in Makhdumpur, Bihar

Makhdumpur is a town and notified area in the Indian state of Bihar.   Demographics According to the 2011 India …

2 min2 May
Top Places to visit in Mahnar Bazar, Bihar

Top Places to visit in Mahnar Bazar, Bihar

Mahnar Bazar is a municipality, block, and Sub-division in the Vaishali district of Bihar state in India. It is also the…

1 min2 May
10 Effective Weight Loss And Fat Burning Exercises: Workout Motivation!

10 Effective Weight Loss And Fat Burning Exercises: Workout Motivation!

10 Effective Weight Loss And Fat Burning Exercises: Workout Motivation!   Sucking in your stomach hoping it will …

7 min30 Apr
#Breaking | Actor Rishi Kapoor passes away.

#Breaking | Actor Rishi Kapoor passes away.

Veteran Bollywood actor Rishi Kapoor has passed away last night. He was admitted to the hospital after poor health. The …

1 min30 Apr
Blog β€” Page 31 | AskGif