Hi friends. Today let’s solve problem 767 – Reorganize String.The problem statement is given a string s, consisting of lowercase English characters, rearrange the characters of s so that any two adjacent characters are not the same. If not possible, return “”.Examples1) s = “aab” –> “aba”2) s = “aaab” –> “” Intuition: So from…
Author: Lalit Shah
CSS Flex and Flex-grow
Recently, we were working on a very interesting problem. The problem statement is as below. 1. We need to show 3 sections with a finite number of blocks in it. In the initial state, this will look something as below. 2. When a user hovers over any of the blocks, the block gets expanded and…
Create and Download CSV file using PHP
CSV (Comma Separated Values) is one of the most popular methods for transferring tabular data between applications. Imagine you have an eCommerce website with hundreds of products and thousands of order history. And then, for safety purposes, you want to take a backup or you have to migrate to another domain – which justifies your…
Hooks – WordPress Plugin Development
Welcome to the third article in the series of WordPress plugin development. We are excited that you are here. We would like to straightaway say that this is the most important tutorial in the entire series. This is because, as stated before, you can’t do almost anything without WordPress hooks. And we have seen many…
Create and Download a zip file using PHP
Recently we were working on creating a WordPress plugin boilerplate, an online tool that features to create a WordPress plugin skeleton and download it in zip format. For achieving this we had to write a script that creates a zip file containing different files, folders, and subfolders, and then pushes it to browser for user…