In this article i’ll cover basic Linux commands with examples which is helpful for both beginners and professionals.
Linux Commands with Examples
Write a Program to find second largest element in an unsorted array. You can solve this problem by using sorting algorithm or you can do without sorting in single traversal O(n) time complexity.
Sorting algorithm such as Selection Sort, Insertion Sort, Bubble Sort is not suitable for large data elements as their time complexity is O(n2) . For sorting you can use Merge Sort or Quick Sort.
Write an efficient program to generate Prime numbers between 1 to n. Or How to print prime number from 1 to n. It is one of the most asked interview questions.
In this post, I will discuss most efficient algorithm to generate Prime Numbers. Before this let’s understand what is prime number.
What is Singleton Design Pattern.
In Singleton Design Pattern we ensure a class has one instance, and provide a global point of access to it.
How to Create Singleton Design Pattern
PHP objective practice questions for interviews. These output questions test how well you understand PHP and it’s programming methodology.
How to create drag and drop multiple file upload functionality using DropzoneJS.
Given a string you have to find first non-repeated character in a string. Suppose string is studentduniya, so the first non-repeated character is s.
How to sort string in PHP. Is there any in-built function available in PHP to sort string directly. PHP does not provide any in-built function to sort string directly.
In this post i’ll show you some of the methods through which we can perform sorting on string.
Write a MySql query find second highest salary, this is one of the most asked interview questions. To find second highest salary you can use multiple approaches. In this post i’ll show different ways to find second maximum salary of an employee.