Java supports the creation and manipulation of arrays as a data structure. The index of an array is an integer value that has value in the interval [0, n-1], where n is the size of the array.
Webdev99
Sparse Arrays (Problem Solving: Data-Structures)
Task: There is a collection of input strings and a collection of query strings. For each query string, determine how
Left Rotation(Problem Solving: Data-Structures)
Task: A left rotation operation on an array of size n shifts each of the array’s elements 1 unit to the left. Given an integer,d, rotate
Arrays – DS
Task: An array is a type of data structure that stores elements of the same type in a contiguous block of memory.
Day 9: Binary Calculator (10 Days of Javascript)
Task: Implement a simple calculator that performs the following operations on binary numbers: addition, subtraction, multiplication, and division. Note that division
Day 8: Buttons Container (10 Days of Javascript)
Task: We want to create nine buttons enclosed in a div, laid out so they form a 3 X 3 grid. Each
Day 8: Create a Button ( 10 Days of Javascript)
Task: Complete the code in the editor so that it creates a clickable button satisfying the following properties: The button’s id is btn.
Day 7: Regular Expressions III (10 Days of Javascript)
Task: Complete the function in the editor below by returning a RegExp object,re , that matches every integer in some string s. Constraints The length of
Day 7: Regular Expressions II (10 Days of Javascript)
Task: Complete the function in the editor below by returning a RegExp object, re, that matches any string satisfying both of the following conditions:
Day 7: Regular Expressions I (10 Days of Javascript)
Task: Complete the function in the editor below by returning a RegExp object,re , that matches any string s that begins and ends with the same vowel. Recall that the
Day 6: JavaScript Dates (10 Days of Javascript)
Task: Given a date string,dateString , in the format MM/DD/YYYY, find and return the day name for that date. Each day name
Day 6: Bitwise Operators (10 Days of Javascript)
Task: We define S to be a sequence of distinct sequential integers from 1 to n; in other words,s={1,2,3,…,n} . We want to know the maximum
Day 5: Arrow Functions ( 10 Days of Javascript)
Task: Complete the function in the editor. It has one parameter: an array, nums. It must iterate through the array performing
Day 5: Template Literals (10 Days of Javascript)
Task: The code in the editor has a tagged template literal that passes the area and perimeter of a rectangle
Day 5: Inheritance (10 Days of Javascript)
Task: We provide the implementation for a Rectangle class in the editor. Perform the following tasks: Add an area method to Rectangle‘s prototype. Create a Square class
Day 4: Classes (10 Days of Javascript)
Task Create a Polygon class that has the following properties: A constructor that takes an array of integer values describing the lengths of the
Day 4: Count Objects (10 Days of Javascript)
Task: Complete the function in the editor. It has one parameter: an array,a , of objects. Each object in the array
Day 4: Create a Rectangle Object (10 Days of Javascript)
Task: Complete the function in the editor. It has two parameters: a and b. It must return an object modeling a rectangle that
Day 3: Throw (10 Days of Javascript)
Task: Complete the isPositive function below. It has one integer parameter, . If the value of is positive, it must return the string YES. Otherwise,
Day 3: Try, Catch, and Finally (10 Days of Javascript)
Task Complete the reverseString function; it has one parameter, s. You must perform the following actions: Try to reverse string s using the split, reverse, and join methods. If an
Day 3: Arrays (10 Days of Javascript)
Task: Function Description Complete the getSecondLargest function in the editor below.getSecondLargest has the following parameters: int nums[n]: an array of integers Returns int: the second
Day 2: Loops (10 Days of Javascript)
Task: First, print each vowel in s on a new line. The English vowels are a, e, i, o, and u, and each vowel must be printed in the
Day 2: Conditional Statements: Switch (10 Days of Javascript)
Task: Complete the getLetter(s) function in the editor. It has one parameter: a string, , consisting of lowercase English alphabetic letters (i.e., a through z). It
Day 2: Conditional Statements: If-Else (10 Days of Javascript)
Task: Complete the getGrade(score) function in the editor. It has one parameter: an integer,score, denoting the number of points Julia earned on
Day 10: Binary Numbers (30 Days of Code)
Task: Given a base- integer,n , convert it to binary (base-2). Then find and print the base-10 integer denoting the maximum number of
Day 1: Let and Const (10 Days of Javascript)
Task: Declare a constant variable,PI , and assign it the value Math.PI. You will not pass this challenge unless the variable is declared
Day 1: Functions (10 Days of Javascript)
Task: Implement a function named factorial that has one parameter: an integer,n . It must return the value of n! (i.e., n factorial). Solution:
Day 1: Arithmetic Operators (10 Days of Javascript)
Task: Complete the following functions in the editor below: getArea(length, width): Calculate and return the area of a rectangle having sides length and width. getPerimeter(length,
Day 9: Recursion 3 (30 Days of Code)
Task: Complete the factorial function in the editor below. Be sure to use recursion. factorial has the following paramter: int n: an integer Solution:
Day 8: Dictionaries and Maps (30 Days of Code)
Task: Given n names and phone numbers, assemble a phone book that maps friends’ names to their respective phone numbers. You will
Day 7: Arrays (30 Days of Code)
Task: Given an array,A, of N integers, print A’s elements in reverse order as a single line of space-separated numbers. Solution: 1)Javscript: 2)Java:
Day 6: Let’s Review (30Days of Code)
Task: Given a string, S, of length N that is indexed from 0 to N-1, print its even-indexed and odd-indexed characters as 2 space-separated strings on a single line (see the Sample below for
Day 5: Loops (30 Days of Code)
Task: Given an integer,n , print its first 10 multiples. Each multiple n*i (where ) should be printed on a new line in the form: n x
Day 4: Class vs. Instance (30 Days of Code)
Task: Write a Person class with an instance variable, age, and a constructor that takes an integer,initialAge, as a parameter. The constructor must
Day 0: Data Types (HackerRank – 10 Days of Javascript)
Task: Variables named firstInteger, firstDecimal, and firstString are declared for you in the editor below. You must use the operator to perform the
Day 3: Intro to Conditional Statements (HackerRank – 30 Days of Code)
Task: Given an integer, n, perform the following conditional actions: If n is odd, print Weird If n is even and in the inclusive range of 2 to 5,
Day 0: Hello, World! (HackerRank – 10 Days of Javascript)
Task: A greeting function is provided for you in the editor below. It has one parameter, parameterVariable. Perform the following tasks to complete
Day 2: Operators(HackerRank – 30 Days of Code)
Task: Given the meal price (base cost of a meal), tip percent (the percentage of the meal price being added as a tip), and tax percent (the percentage
Day 1: Data Types(HackerRank – 30 Days of Code)
Task: Complete the code in the editor below. The variables i,d, and s are already declared and initialized for you.
Day 0: Hello, World.
Task: To complete this challenge, you must save a line of input from stdin to a variable, print Hello, World. on a

How to use Redux in ReactJS with Class & Function Component (Explained with Example)
This article is about a step by step guide to learn how to use redux with react for both functional as well as class based components.We will learn how to use connect API & react hooks like useSelector & useDispatch also we have shared live demo and github source code so that you guys can better understand how exactly react works with redux.

Redux Functional Programming
In this article we will learn what is functional programming ,higher order functions,pure functions & the concept of immutabilty.redux is based on the principle of functional programming.

Redux ActionCreators
This article is about the action creator function & their usecase.We will learn how to create actionCreators using traditional & arrow functions.

Redux Action & ActionTypes
Ths article is about introduction to redux actions & actionTypes.Here we will learn how to create actionsTypes and use them in action object & reducer functions.

Redux Store
This aricle is about redux store .In the article we will learn in detail how to create store & what are the store properties in detail also how to initlize the store.for more information checkout the article

Redux Reducers
This article is about a quick introduction to redux reducer functions. we will learn what are reducers,how to create reducer,seperating data handling using multiple reducers & combining reducers using custom & pre-defined functions.

Redux Introduction
This article is about introudction to redux tool.here we will learn principles of redux,redux defination ,pors & cons of using redux & finally redux installation using npm & yarn package Managers.for more understand checkout the article.

Redux Architecture
This article is about basic introduction to redux concepts such as store , reducer & actions & their working principles.for more checkout the post…

Resetting Redux State with a Root Reducer ( Completely & selectively )
In this article you will learn how to reset the state of redux store.we can reset the store entirely or selectively.Checkout the article for more information.

Deploy React App with React Router to Github Pages ( blank/404 page problem solved )
In this article we have solved the blank page and 404 file not found error that occure when we use react-router in our react app & deploy it using github pages.For more details checkout the article.

how to deploy React App to Github Pages
In this article we have provided step by step guide from creating react app till deploying it on github using the concept of github pages.We will providing steps & pre-requisites so you can understand it vetter.

How to download Java(install, setup) & write the first java program?
This post is about how to setup the java envirnoment in your machine.I have explained java installation in very simple langauage so that everyone can understand.For further information go throught the post.

How to Restrict Special Characters in AngularJS?
This article is about,how to restrict the user from entering invalid inputs or characters in the html using AngularJS directives.

How to Add Register Authentication with firebase to react Applications?
In this tutorial, we will create a real-world react application for user registration. we will use google’s firebase for registering the user and also use the concept of private routes(route guard) for allowing only registered users into the user profile section.

ReactJS – useRef Hook
This post is about introduction to React useRef hook & its use-case. Let’s understand useRef with simple code snippets & video output.

useMemo Hook
This post is a introduction to react useMemo hook ,its working & use case.So let’s get started understanding useMemo with code and video output.useMemo is a React hook that memorizes the output of a function.useMemo re-computes the memorized value when one of its dependency changes.

ReactJS – useCallback Hook
This post is about introduction to React useCallback hook.useCallback returns a memorized version of the callback that only changes if one of the dependencies has changed.For better understanding go throught the entire post & video!!!

ReactJS – useReducer Hook
This post is about small introduction to useReducer Hook.useReducer is usually preferable to useState when you have complex state logic that involves multiple sub-values or when the next state depends on the

ReactJS – useContext Hook
This post is about introduction to useContext hook & the reason to use it.Let’s see what makes useContext so special.

ReactJS – useEffect Hook
1.The Effect Hook allows us to perform side effects (an action) in the function components.
2.Function component doesn’t have life cycle methods which are available in class components ,In other words Effects Hooks are equivalent to componentDidMount(),
componentDidUpdate() , and componentWillUnmount() lifecycle methods.

ReactJS – useState Hook
useState() is a React hook. Hooks make it possible to use state and mutability inside function components. It basically lets you turn your non-stateful.

React Hooks
1.Hooks are the new feature introduced in the React V16.8.0 version.
2.Hooks are functions that let you “hook into” React state and lifecycle features from function components.
3.Hooks don’t work inside classes — they let you use React without classes.

ReactJS Installation/Environment Setup
In this post, we will learn how to set up a successful environment for React development, For running any react application.We use CRA tool by facebook to create react template application.
Array Index Out Of Bounds Exception in Java
Java supports the creation and manipulation of arrays as a data structure. The index of an array is an integer value that has value in the interval [0, n-1], where n is the size of the array.
How do I check for null values in JavaScript?
JavaScript is very flexible with regards to checking for “null” values. I’m guessing you’re actually looking for empty strings, in which case this simpler code will work
How do I execute a program or call a system command?
import subprocess # To execute a program subprocess.run([“program_name”]) # To call a system command subprocess.run([“system_command”])

How can I check if a program exists from a Bash script?
How would I validate that a program exists, in a way that will either return an error and exit, or continue with the script? It seems like it should be easy, but it’s been stumping me. …
What are the best books for learning C++?
Unlike many other programming languages, which are often picked up on the go from tutorials found on the Internet, few are able to quickly pick up C++ without studying a well-written C++ book.
Errors and Exceptions
Programming Related Errors & Exceptions Questions The Definitive C++ Book Guide and List
Javascript Comment
The JavaScript comments are meaningful way to deliver message. It is used to add information about the code, warnings or suggestions so
History of javascript
In 1993, Mosaic, the first popular web browser, came into existence. In the year 1994, Netscape was founded by Marc Andreessen. He realized that the
Introduction to javascript
JavaScript is an object-based scripting language which is lightweight and cross-platform. JavaScript is not a compiled language, but it is a translated
Introduction To Java
Java is an object-oriented, class-based, concurrent, secured and general-purpose computer-programming language. It is a widely used robust technology. What is java?