Description:Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. Example 1: Input: n = 3Output: [“((()))”,”(()())”,”(())()”,”()(())”,”()()()”]Example 2: Input: n = 1Output:… Read more “LeetCode String Function: Parentheses”
Find the second highest Salary and return null if only one row
The following code could be the answerselect salary from Employee order by salary desc limit 1,1but the clause to return null when there is no such record… Read more “Find the second highest Salary and return null if only one row”
Install Laravel on Mac
If not then install from the composer website https://getcomposer.org/download/ composer global require “laravel/installer” vi ~/.bash_profile export PATH=~/.composer/vendor/bin:$PATH source ~/.bash_profile laravel new <<project_name>> php artisan server Now the laravel project is running on the… Read more “Install Laravel on Mac”
Function that reverses a string.
Write a function that reverses a string. The input string is given as an array of characters s. You must do this by modifying the input array in-place with O(1) extra memory.
Reverse the order of Characters
Given a string s, reverse the order of characters in each word within a sentence while still preserving whitespace and initial word order.
MySql Interview Questions
Here are few questions for MySql interview: MySQL is a database management system. MySQL is a relational database management system (RDBMS) developed by Oracle that is based on structured… Read more “MySql Interview Questions”
How to remove node modules from any folder in git
Create a .gitignore file in the git repository if it does not contain one touch .gitignore Open up the .gitignore and add the following line to the… Read more “How to remove node modules from any folder in git”
Setting up and creating HyperLedger Fabric Project
Following are the commands that are to be run on the ssh window to create a new project: (SSH new browser window) sudo yum check-update curl -fsSL… Read more “Setting up and creating HyperLedger Fabric Project”
Creating a sortable Gridview with data from relational tables
Background of this article is when I had a task to sort a column in a gridview that is not the field from the table that is… Read more “Creating a sortable Gridview with data from relational tables”