Articles on Trending Technologies

Technical articles with clear explanations and examples

Database Stored Procedures and SQL PSM

Hardik Gupta
Hardik Gupta
Updated on 02-Aug-2023 2K+ Views

Stored Procedures are essential to database management systems (DBMS) because they boost security, increase performance, and encourage code reuse. A group of SQL statements are included within pre-compiled database objects known as stored procedures. They can be called by apps or other database objects and are saved in the database. In this post, we will go into the details of SQL Persistent Stored Modules (PSM), a procedural programming language extension for SQL, and examine the idea of stored procedures. Understanding Stored Procedures Stored Procedures are database objects that have already been pre-compiled and include a collection of SQL statements. They ...

Read More

Construct Complete Binary Tree from its Linked List Representation

Shubham Vora
Shubham Vora
Updated on 02-Aug-2023 870 Views

In this problem, we will convert the linked list to the complete binary tree. We can assume the linked list as an array. The pth element of the linked list is the parent node of the binary tree's 2*p + 1 and 2*p + 2 elements. So, we can traverse through each element of the linked list and construct the binary tree. Problem statement − We have given a linked list containing N nodes. We need to construct the complete binary tree from the given linked list. Also, print the in−order traversal of the binary tree. Note − In the ...

Read More

How to disable a jQuery-ui draggable of widget?

Dishebh Bhayana
Dishebh Bhayana
Updated on 02-Aug-2023 675 Views

We can disable a jQuery UI draggable widget with the help of its draggable disabled option. jQuery is a javascript library that helps us manipulate the DOM easily and efficiently using its various helper methods and properties. It allows us to add interactivity to the DOM as well as add and change the CSS styles of the DOM elements. Syntax $(element).draggable({ disabled: true }) We will be using the following jQuery link in our application − The above-provided code snippet is a link tag that imports the CSS file from the jQuery UI library. Example ...

Read More

Check if the given Permutation is a Valid BFS of a Given Tree

Shubham Vora
Shubham Vora
Updated on 02-Aug-2023 381 Views

In this problem, we will check whether we can get the permutation of 1 to N elements given array using the BFS (Breadth−first search) traversal with the given binary tree. Here, we will traverse the tree and find all possible permutations using the BFS traversal. After that, we can check whether any BFS traversal result matches the array permutation. Problem statement − We have given an array of size containing the first N positive integers in random order. Also, we have given a tree containing the first N numbers as a tree node. We need to check whether we ...

Read More

Check if the End of the Array can be Reached from a given Position

Shubham Vora
Shubham Vora
Updated on 02-Aug-2023 238 Views

In this problem, we will check whether we can reach the array’s end by moving back or ahead by nums[p] moves from the current position. The naïve approach to solve the problem is to check all possibilities to move into the array and see if we can reach the array’s end. Another approach is using the queue and BFS traversal in the array. In this tutorial, we will learn both approaches to check whether we can reach to the end of the array. Problem statement − We have given a nums[] array containing the positive integers. Also, we have given ...

Read More

How to fix property not existing on EventTarget in TypeScript?

Rushi Javiya
Rushi Javiya
Updated on 01-Aug-2023 8K+ Views

TypeScript is an open-source language that provides optional static typing for JavaScript. It allows developers to write more maintainable code by catching type-related errors at compile-time rather than runtime. However, working with event listeners in TypeScript can be a bit tricky. One common issue is the "property not existing on EventTarget" error. This error occurs when you try to access a property on an event target that TypeScript doesn't recognise. In this article, we will discuss how to fix this error and provide examples to demonstrate how to use event listeners in TypeScript. Understanding the Error Before we dive into ...

Read More

How to validate IFSC Code using Regular Expression?

Sakshi Koshta
Sakshi Koshta
Updated on 01-Aug-2023 3K+ Views

Indian Financial System Code is the abbreviation. Indian bank branches that take part in the electronic fund transfer system are identified by a special 11-character code. The Reserve Bank of India uses this code to transfer money between banks during internet transactions. There are two sections to the IFSC code. The bank is identified by the first four characters, whereas the branch is identified by the final six characters. NEFT (National Electronic Funds Transfer), RTGS (Real Time Gross Settlement), and IMPS (Immediate Payment Service) are just a few of the electronic transactions that require IFSC codes. Method Some general methods ...

Read More

Print all the non-repeating words from the two given sentences

Sakshi Koshta
Sakshi Koshta
Updated on 01-Aug-2023 472 Views

In this tutorial, we will identify and print all non-repeating words from two given sentences. Non-repeating words refer to words that appear only once in both sentences, means they do not repeat in other sentence. The task involves analysis of the input sentences, identification of the individual words, and comparing them across both sentences to find which ones appear only once. The output should be a list of all such words. This task can be accomplished through various programming approaches, such as using loops, arrays, or dictionaries. Methods Here are the two methods to print all the non-repeating words from ...

Read More

Permutation of a string with maximum number of characters greater than its adjacent characters

Sakshi Koshta
Sakshi Koshta
Updated on 01-Aug-2023 511 Views

It is crucial to manipulate strings in various problem-solving scenarios. Discovering a permutation of the given string that optimizes the count of characters larger than their contiguous counterparts presents an enjoyable puzzle, requiring rearranging the string's characters to generate as many pairs as possible of adjacent characters where the left character is lesser than the right. Methods There are several methods to solve permutations of a string where maximum number of characters is more than characters immediately adjacent to them. Method 1 − Backtracking with Pruning − Method 2 − Dynamic Programming− Method 3 − Heap's Algorithm− Method 4 ...

Read More

The Future of Self-Driving Cars: Advancements and Implications

Devang Delvadiya
Devang Delvadiya
Updated on 01-Aug-2023 335 Views

Because they present the potential of autonomous automobiles using our roads in the future, self−driving automobiles have captured the attention of people all over the world. Modern technology has the ability to significantly alter both transportation and daily life in many ways. This article will address the development of self−driving automobiles and the profound consequences for the future that they carry. Advancements in Self−Driving Cars Sensing and perception Self−driving automobiles need a sophisticated sensor network to efficiently identify the surrounding area. Cameras, radar detectors, and ultrasonic instruments are some of the sensors that collaborate to collect information about the environment ...

Read More
Showing 34981–34990 of 61,297 articles
Advertisements