Vi and Vim is very powerful editor in Linux operating system. I already discussed vi, vim commands in my previous tutorial.
How to reverse number is PHP. This question is asked by one of our forum user recently. Suppose someone enter 764 how do i reverse this number.
Write a program to find index of an element in a sorted array. How do you solve this problem. There are multiple approaches to solve this problem. But try to solve this problem in minimum time complexity.
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.