Mohammed Shahnawaz Alam

Mohammed Shahnawaz Alam

3 Articles Published

Articles by Mohammed Shahnawaz Alam

3 articles

SQL Query to Find the Name of a Person Whose Name Starts with Specific Letter

SQL
Mohammed Shahnawaz Alam
Mohammed Shahnawaz Alam
Updated on 18-Dec-2024 9K+ Views

When we work with databases, we often need to search for the name of a Person whose name starts with a specific Letter. We can also find the names of persons whose name starts with a specific letter using SQL. This is possible by using the 'LIKE' operator in SQL, it allows us to do pattern matching on a text. Prerequisites: The following are the prerequisites to understand this tutorial - Basic SQL syntax understanding. A database management tool like MySQL, Oracle SQL or SQLite. What is 'LIKE' Operator? The ...

Read More

Maximum Subarray Sum in Java: Kadane’s Algorithm

Mohammed Shahnawaz Alam
Mohammed Shahnawaz Alam
Updated on 09-Sep-2024 488 Views

Here, we are going to learn how to find the maximum subarray sum using Kadane's Algorithm in Java? Problem Statement Given an array with size N, write a Java program to find the maximum subarray sum using Kadane's Algorithm. Example Input: n = 5 arr[] = 1, 2, 3, -2, 5 Output: Maximum Subarray sum is: 9 What is Kadane's Algorithm Kadane's Algorithm helps us to find the Maxumum Subarray Sum in time complexity of O(n). Steps to Find Maximum Subarray Sum Using Kadane's Algorithm Initialize 2 variables named currentSum=Integer.MIN_VALUE and maxSum= ...

Read More

How to check the version of ReactJS?

Mohammed Shahnawaz Alam
Mohammed Shahnawaz Alam
Updated on 04-Sep-2024 2K+ Views

ReactJS is a frontend library of JavaScript to build efficient Single Page Application(SPA). Each version of React comes with some improvements and added features. So, it is very important to know which version we are using. Approaches to Check React Version We can check the version of ReactJS by using the below-mentioned Approaches. Using Command Line Using ‘React.version' Property Searching in dependencies in package.json React Version Using Command Line We can use the below command to check the version of ReactJS. The below command ...

Read More
Showing 1–3 of 3 articles
« Prev 1 Next »
Advertisements