chevron_left

Recent posts tagged in

2 0 1 min.
How to return a character array from a function in cA character array is a sequence of characters, just as a numeric array is a sequence of numbers. A typical use is to store short pieces of text as character vector...
posted Jun 22 Sanjana Sagar 399 points
2 0 1 min.
 A function within a function PythonInner functionsA inner function is defined inside another function is known as inner function or nested function. Inner functions are able to access variables of the enclosing scope. Nested func...
posted Jun 22 Sanjana Sagar 399 points
22 0 2 min.
How to match password and confirm the password in javascript Password validation is a process in which we have to validate the password that is strong and acquiring all the points that we want, like having a character more than 10 or containing ...
posted Jun 20 Sanjana Sagar 399 points
15 1 4 min.
Difference between orderby and groupby in sqlSometimes, people are quite confused over these two concepts (SQL ORDER BY vs. GROUP BY), and the reason behind this confusion is a lack of understanding of both concepts. While both of them...
posted May 29 Sanjana Sagar 399 points
3 0 1 min.
How to find longest palindrome in a string in java// Java implementation of O(n^2) // time and O(1) space method // to find the longest palindromic substring public class LongestPalinSubstring { // A utility function to print // a substring s...
posted May 22 Sanjana Sagar 399 points
3 0 1 min.
How to change the background color in javascript I agree with the previous poster that changing the color by className is a prettier approach. My argument however is that a className can be regarded as a definition of "w...
posted May 22 Sanjana Sagar 399 points
3 0 1 min.
How to initialize two dimensional array in java // java program to initiliaze a 2D array import java.io.*; class GFG { public static void main(String[] args) { // Declaration along with initialisation // 2D integer array wi...
posted May 22 Sanjana Sagar 399 points
6 0 1 min.
How to write callback function in javascriptA callback function is a function passed into another function as an argument, which is then invoked inside the outer function to complete some kind of routine or action.Here is a quick example:function gre...
posted May 20 Sanjana Sagar 399 points
6 0 3 min.
How to create a c++ project in visual studioTo create a C++ project in Visual Studio 2019From the main menu, choose File > New > Project to open the Create a New Project dialog box.At the top of the dialo...
posted May 20 Sanjana Sagar 399 points
6 0 1 min.
Reverse a string in c without using functionUsing strrev() functionThe function is used for reversing a string.The reversed string will be stored in the same string.Syntaxstrrev (string)Before working on reversing the string without using function, l...
posted May 20 Sanjana Sagar 399 points
6 0 2 min.
How to check if an input is a number in java public class StudyTonight { public static void main(String[] args) { String input = "1234"; try { Integer.parseInt(input); System.out.println(input + " is a valid int...
posted May 20 Sanjana Sagar 399 points
6 0 1 min.
How to put a text file into an array in javaList<String> list = Files.readAllLines(new File("input.txt").toPath(), Charset.defaultCharset() );Java ArraysArrays are used to store multiple values in a single variable, instead of declaring separat...
posted May 20 Sanjana Sagar 399 points
6 0 1 min.
How to check if a number is negative in java Read a number from the user using the Scanner class's method. check whether the given number is greater, lesser or, equal to 0. If it is greater given number is positive if the lesser given number...
posted May 20 Sanjana Sagar 399 points
6 0 7 min.
JSON FormatJSON’s format is derived from JavaScript object syntax, but it is entirely text-based. It is a key-value data format that is typically rendered in curly braces.When you’re working with JSON, you’ll likely see JSON objects...
posted May 20 Sanjana Sagar 399 points
0 0 1 min.
At first, we validate a phone number of 10 digits with no comma, no spaces, no punctuation and there will be no + sign in front the number. Simply the validation will remove all non-digits and permit only phone numbers with 10 digits. Here is the fun...
posted May 19 Sanjana Sagar 399 points
0 0 1 min.
 How to check if array contains a number in javaIf your array is sorted, you can use the Arrays binarySearch() method to check if the array contains the given value or not.There are many ways to check if a Java array contains a specific value.Si...
posted May 19 Sanjana Sagar 399 points
To see more, click for the full list of questions or popular tags.