var makeGood = function (s) {
const stack = [];
for (const char of s) {
if (
stack.length &&
Math.abs(char.charCodeAt() - stack[stack.length - 1].charCodeAt()) === 32
) {
stack.pop();
} else {
stack.push(char);
}
}
return stack.join('');
};
#1544. Make The String Great
May 5, 2024
1 minute
It seems like this feed has limited content. Do you want to fetch full content?
FetchUnfortunately, we're not able to fetch full content in this moment,
Do you want to check full content in the source blog?
Author: DEV
Date: May 5, 2024
Permalink: owlver.com/s/vJZ25Tmd
A story from Owlver Network.
Last Stories
- Avoid intermediate arrays (parsing strings) to make you Javascript fast
- Awesome Ethereum Development Tools I used
- Learning AWS Day by Day - Day 68 - Amazon Kinesis Data Firehose
- Audio play with buffer in React Native
- can anyone help me to convert or replace a field of a nested column of a dataframe?
- Setting Up ARM VM on Proxmox VE
- 🧿 Owlver Network © 2020-2024
- Blog
- Accessibility
- Terms of Services
- Privacy Policy
- Cookies Policy
- Manifest
- Disclaimer
- Assets
- Careers
- Developers
- Help Center
- FAQ
- Status
- About
- Sitemap
- Contact
What's your thoughts?
Please Register or Login to your account to be able to submit your comment.