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
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β¦

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β¦

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β¦

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β¦

Longest Uncommon Subsequence I
Given two strings, you need to find the longest uncommon subsequence of these two strings. The longest uncommon subsequeβ¦

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β¦

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β¦

Student Attendance Record I
You are given a string representing an attendance record for a student. The record only contains the following three chaβ¦

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 β¦

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β¦

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β¦

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

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β¦

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.β¦

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β¦