Articles on Trending Technologies

Technical articles with clear explanations and examples

Check if given Morse Code is Valid

Shubham Vora
Shubham Vora
Updated on 17-Jul-2023 418 Views

In this problem, we will validate the Morse code. The Morse code method was used to transform the text in the encoded format, and it was very helpful to provide communication between two entities before the telephone was invented. There are standard codes for each alphabetical character containing the ‘.’ And ‘−‘. The code is prepared based on the transmission time, where ‘.’ Represents the short signals, and ‘−‘ represents the long signals. However, in this tutorial, we will use the standardized Morse code to decode and validate the string. Here is the table of standardized Morse code. ...

Read More

Check if two Binary Strings can be Made Equal by Doing Bitwise XOR of Adjacent

Shubham Vora
Shubham Vora
Updated on 17-Jul-2023 363 Views

In this problem, we will check whether we can convert string alpha2 to alpha1 by performing the XOR operation of any two adjacent characters and replacing both characters with an XOR value. We will use the logic based on the XOR value of two digits to solve the problem. If the string contains at least one ‘1’ and more than two adjacent consecutive characters, we can convert the alpha2 string to alpha1. Problem statement − We have given two binary strings of the same length. We need to check whether we can convert the alpha2 string to alpha1 by performing ...

Read More

Check if a String can be Converted to Another by Inserting Character Same as both Neighbours

Shubham Vora
Shubham Vora
Updated on 17-Jul-2023 189 Views

In this problem, we will check whether we can convert the string alpha1 to alpha2 by inserting the same characters between any two same characters of the given string. We will use the run length encoding algorithm to solve the problem, which counts the frequency of the contiguous characters. Problem statement − We have given two strings named alpha1 and alpha2. We need to check whether we can convert the string alpha1 to alpha2 by performing an unlimited number of below operations. Choose any index, and the character at the current and previous index is the same, insert the ...

Read More

Check if a Character is Only Occurring as One Single Contiguous Substring or Not

Shubham Vora
Shubham Vora
Updated on 17-Jul-2023 313 Views

In this problem, we will check whether all characters are present continuously in the given string. We will use the map data structure to solve the problem. The map will keep track of the last index of the particular character, and based on the last index of the current character, we will decide whether the string contains contiguous characters. Problem statement – We have given a string alpha of length N containing the lowercase and uppercase alphabetical characters. We need to check whether the given string is contiguous. The string is contiguous only if it contains all characters as a ...

Read More

Shortest path in a graph from a source S to destination D with exactly K edges for multiple Queries

Ayush Singh
Ayush Singh
Updated on 17-Jul-2023 786 Views

Finding the shortest route between a source vertex and a target vertex in a graph with precisely K edges is one of the most typical graph traversal issues. The objective is to find the shortest path with minimum weight and exactly K edges. This issue can manifest in a number of practical contexts, including transportation networks, routing protocols, and resource allocation. Dynamic Programming (DP), and Dijkstra's Algorithm are just some of the strategies that may be used to attack this issue. The shortest path under the given constraints can be found using one of many methods. Dijkstra's Algorithm takes into ...

Read More

Breadth First Search without using Queue

Ayush Singh
Ayush Singh
Updated on 17-Jul-2023 808 Views

Breadth To begin with, Look (BFS) may be a chart traversal calculation utilised to investigate hubs in a chart in a breadthward movement. The normal usage of BFS utilises a line information structure to keep track of hubs to come. In any case, it is conceivable to execute BFS without utilising an unequivocal line by utilising other information structures. One elective approach to actualizing BFS without a line is to utilise two clusters or records: one for the current level of hubs being investigated and another for the next level of hubs to be investigated. At first, the current level ...

Read More

Top 10 Leadership Podcasts You Should Tune into Right Now

Anurag Gummadi
Anurag Gummadi
Updated on 14-Jul-2023 439 Views

Podcasts have become a great source of knowledge and entertainment. In the past few years, podcasts have made a huge impact on the way we consume information. From educational lectures to personal development advice - there are so many different topics covered by podcast programs that it can be difficult to find the one that best suits your needs. One popular topic happens to be leadership. There are tons of amazing leadership podcasts out there and here is a list of 10 you should look into. Must-follow Leadership Podcasts The Leadership Experience − Insights from Simon Sinek Simon ...

Read More

The Art of Influence: Persuasive Leadership Techniques

Anurag Gummadi
Anurag Gummadi
Updated on 14-Jul-2023 774 Views

Leadership is defined as the act of influencing individuals, groups, and organizations to realize their goals. At its core, persuasive leadership consists of the use of communication strategies to engage others to achieve desired outcomes. Through this approach, leaders can drive progress and foster a shared vision with stakeholders that produce positive effects on an organization’s operations and mission-driven activity. There are a number of factors influencing how effective persuasive leadership may be in different contexts – such as relationships between leaders and followers or specific cultural norms associated with persuasion. By exploring the role of persuasive leadership within organizational ...

Read More

Spotting Intelligence in a Matter of Minutes: Quick Techniques for Identification

Anurag Gummadi
Anurag Gummadi
Updated on 14-Jul-2023 282 Views

First impressions are extremely important. They set the tone for future conversations, meetings, and relationships. A person’s intelligence is one attribute that can be assessed fairly quickly when a first impression is created. Studies have shown that people draw connections between a person's physical attributes and his or her intellectual capabilities only seconds after an initial introduction has been made. People generally consider individuals with certain common intelligent characteristics — good posture, attractive facial features, calming voice tones to be more intelligent than others even though there are other factors besides those mentioned which could contribute to a person's actual ...

Read More

Key Attributes for Giving Effective Feedback: 7 Essential Traits

Anurag Gummadi
Anurag Gummadi
Updated on 14-Jul-2023 432 Views

As a professional, it is of utmost importance to be able to give effective feedback. This type of communication impacts the overall performance and productivity in an organization by motivating employees, setting standards for excellence, and providing a foundation on which individuals can build their skill sets. In order to do this effectively, seven essential traits must be present when delivering constructive criticism. These include being clear, direct, specific, timely, honest yet tactful; using inclusive language; focusing on behaviors not personalities; and discussing the impact of the behavior or action rather than making value judgments By utilizing these key attributes ...

Read More
Showing 35711–35720 of 61,297 articles
Advertisements