How to reverse an Array or String ?

We have taken some example to reverse an Array or String. Ex: Start writing code on your compiler : C++ Solution: C Solution: Java Solution: Python Solution: C# Solution: PHP Solution: JavaScript Solution: Output : 1 2 3 4 5 6Reversed array is:6 5 4 3 2 1 Time Complexity : O(n)Recursive Way : 1. Initialize … Read more

How to generate Fibonacci series

How to generate Fibonacci series. In fibonacci series, next number is the sum of previous two numbers for example 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55 etc. The first two numbers of fibonacci series are 0 and 1. There are two ways to write the Fibonacci series program in java that we illustrate:

Introduction to Object Oriented Programming

Introduction to Object Oriented Programming Object-Oriented Programming (OOP) is one of the most popular methodologies in software development. It offers a powerful model for creating computer programs. It speeds up the program development process, improves maintenance, and enhances reusability of programs.Computer follows an Input-Process-Output cycle. It needs set of instructions called program to specify the … Read more