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

String Compression
Featured

String Compression

Given an array of characters, compress it in-place. The length after compression must always be smaller than or equal to the original array. Every element of the array should be a character (not int…

3 min read21 May 2020
Read article
Large sound and Strong tremors in Bangalore, Earthquake?

Large sound and Strong tremors in Bangalore, Earthquake?

Bangalore people have witnessed some kind of weird large sound along with strong tremors mostly like an earthquake. Peop…

1 min20 May
Repeated Substring Pattern

Repeated Substring Pattern

Given a non-empty string check if it can be constructed by taking a substring of it and appending multiple copies of the…

1 min16 May
Detect Capital

Detect Capital

Given a word, you need to judge whether the usage of capitals in it is right or not. We define the usage of capitals in…

2 min15 May
Longest Uncommon Subsequence I

Longest Uncommon Subsequence I

Given two strings, you need to find the longest uncommon subsequence of these two strings. The longest uncommon subseque…

1 min13 May
Popular Ruby Editors

Popular Ruby Editors

To write your Ruby programs, you will need an editor − - If you are working on a Windows machine, then you can us…

1 min12 May
Reverse String II

Reverse String II

Given a string and an integer k, you need to reverse the first k characters for every 2k characters counting from the st…

1 min11 May
Student Attendance Record I

Student Attendance Record I

You are given a string representing an attendance record for a student. The record only contains the following three cha…

1 min11 May
Ruby - Local Environment Setup Mac

Ruby - Local Environment Setup Mac

In this post, we’re going to show you how to install Ruby on your Mac. Along the way, we’ll learn about the …

1 min11 May
Ruby - Local Environment Setup in Windows

Ruby - Local Environment Setup in Windows

Here are the steps to install Ruby on a Windows machine. NOTE - You may have different versions available at the time o…

1 min11 May
Ruby - Local Environment Setup in UNIX

Ruby - Local Environment Setup in UNIX

If you are still willing to set up your environment for Ruby programming language, then let's proceed. This tutorial wil…

1 min11 May
Ruby Introduction

Ruby Introduction

Ruby "A Programmer's Best Friend": - Ruby is an object-oriented programming language developed by Yukihiro Matsumoto. …

2 min11 May
Reverse Words in a String III

Reverse Words in a String III

Given a string, you need to reverse the order of characters in each word within a sentence while still preserving whites…

1 min11 May
Construct String from Binary Tree

Construct String from Binary Tree

You need to construct a string consists of parenthesis and integers from a binary tree with the preorder traversing way.…

1 min11 May
Robot Return to Origin

Robot Return to Origin

There is a robot starting at position (0, 0), the origin, on a 2D plane. Given a sequence of its moves, judge if this ro…

1 min11 May
Blog β€” Page 29 | AskGif