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…

बंगलौर में बड़े ध्वनि और जोरदार झटके, भूकंप?
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…