Finding subarray with given sum using c++

Posted by Editorial Staff | Updated on | in C++ Tutorial.


Problem: Given an unsorted array of integers, find a subarray which adds to a given number. If there are more than one subarrays with the sum as the given number, print any of them. Solution: …

C program to remove consecutive repeated characters from string

Posted by Editorial Staff | Updated on | in C Programming Tutorial.


In this tutorial, We have shared how to remove consecutive repeated characters from string using c programming language. This program will read a string and remove repeated consecutive characters from the string and print new …

How to create contact form in react js

Posted by Prem Tiwari | Updated on | in ReactJS.


In this tutorial, I am going to share how to create contact form in react js with example. Hope, I have solved your following questions, if you have still question, feel free to add in …

Python File Methods

Posted by Editorial Staff | Updated on | in Python Programming.


Python File Methods: A file object is created using open function and here is a list of functions which can be called on this object. Python provides an inbuilt function for creating, writing and reading …

JavaScript | ArrayBuffer.prototype.slice() Function

Posted by Editorial Staff | Updated on | in JavaScript.


ArrayBuffer.prototype.slice() Function: The slice() method returns a new ArrayBuffer whose contents are a copy of this ArrayBuffer’s bytes from begin, inclusive, up to end, exclusive. Output

PHP | sort() Function

Posted by Editorial Staff | Updated on | in PHP.


PHP sort() function sorts an array. Elements will be arranged from lowest to highest when this function has completed. It will returns TRUE on success or FALSE on failure. Syntax: For more information visit: https://www.php.net/manual/en/function.sort.php

PHP Sorting Arrays

Posted by Prem Tiwari | Updated on | in PHP.


In this tutorial, we have share the list of PHP sorting Arrays function with descriptions. What is an Array? An array is a special variable, which can hold more than one value at a time. …

PHP Array Functions List

Posted by Editorial Staff | Updated on | in PHP.


Below we have shared a list of array functions in PHP which you can use while working with PHP applications. These functions allow you to interact with and manipulate arrays in various ways. Arrays are …

Python program to add digits of a number

Posted by Pinki | Updated on | in Python Programming.


In this article, we have shared a simple Python program to add the digits of a number using while loop. Once you execute this program it will ask to enter a positive number and the …