Modify a Sentence by Reversing Order of Palindrome Words

Shubham Vora
Updated on 18-Jul-2023 17:27:29

207 Views

Problem Statement We have given a string str containing a total of N words. We need to find all palindrome words in the given string and create a new string by reversing the order of all palindrome words. Sample Examples Input str = ‘nayan was gone to navjivan eye hospital’ Output ‘eye was gone to navjivan nayan hospital’ Explanation The string contains three palindrome words: nayan, navjivan, and eye. We have reversed the order of all three words and kept all other words the same. Input ‘Hello, users! How are you?’ Output ‘Hello, users! How are you?’ ... Read More

Difference Between Go and Erlang

Pranavnath
Updated on 18-Jul-2023 17:27:26

328 Views

Go and Erlang are two popular programming languages that are frequently utilized for building large-scale, conveyed, and fault-tolerant frameworks. Whereas both languages have their claims and various kinds of highlights and qualities, both share a common objective of giving designers effective devices for building versatile and adaptable frameworks. In this article, we'll compare Go and Erlang in terms of their concurrency models, fault-tolerance highlights, syntax, performance, and community support. By understanding the qualities and shortcomings of these two languages, developers can make educated choices approximately as to which language to utilize for their next project. Go Go is outlined for ... Read More

Minimum Removals to Place All 0s Before 1s in a Binary String

Shubham Vora
Updated on 18-Jul-2023 17:25:35

504 Views

Problem Statement We have given binary string str, and we require to remove minimum characters from the string such that we can place all zeros before 1. Sample Examples Input str = ‘00110100111’ Output 3 Explanation Here, we can achieve output 3 in two ways. We can either remove arr[2], arr[3], and arr[5] or arr[4], arr[6], and arr[7] from the string. Input str = ‘001101011’ Output 2 Explanation We can remove arr[4] and arr[6] to place all zeros before 1. Input str = ‘000111’ Output 0 Explanation In the given str, all ... Read More

Difference Between MSS and MTU in Computer Networking

Pranavnath
Updated on 18-Jul-2023 17:25:27

543 Views

Transmission Control Protocol comes under the fourth Layer of the Open System Interconnection model. The main purpose of TCP is to track the packets and these fields add extra information on the TCP header. The connection must be implemented before transferring the packets. Some of the errors that may arise while transferring packets are the packets may be lost, packets may replicate, and damaged. The Internet Protocol (IP) packet will follow a format called TCP segment which is composed of two parts namely the Header and data. In this article, the two fields of the TCP header namely MSS and ... Read More

Difference Between MTP3 and MTP3B

Pranavnath
Updated on 18-Jul-2023 17:23:15

281 Views

Signaling system 7 is a protocol that comes under the network layer of the Open System Interconnection model. It helps the node of the network to track the transfers of messages. Message Transfer protocol is the basis and is divided into many layers according to its function. The first layer represents the setting up of the network, then the second layer take care of transmissions without any error and the third layer acts like a medium between two networks. MTP3B stands for Message Transfer Protocol broadband as it transfers multiple signals concurrently. What is MTP3? In the SS7 protocol, there ... Read More

Save pyttsx3 Results to MP3 or WAV File

Rohan Singh
Updated on 18-Jul-2023 17:21:09

3K+ Views

The pyttsx3 is a Python library that provides a simple interface for using TTS synthesis. Text to Speech (TTS) converts written text to spoken words. It is mainly used to generate speech from text and customize various aspects of the speech audio. The speech output generated by the pyttsx3 library is often saved as an audio file in popular formats like MP3 or WAV. This article will discuss how we can save pyttsx3 results to MP3 or WAV files. Algorithm A general algorithm for saving the pyttsx3 result to mp3 or WAV file is as follows : Import ... Read More

Difference Between MediaFire and SecureSafe

Pranavnath
Updated on 18-Jul-2023 17:20:03

182 Views

MediaFire and Securesafe are storage devices used by different organizations and for personal purposes. MediaFire has been first launched in the year 2006 which provides a storage space of 10GB and later Securesafe was introduced in the year 2009 which provides 100 GB storage space. Using the Securesafe, it makes the user to access the data like pictures, videos and music very easily and securely. On the other hand, Mediafire does not provide any kind of security to the files stored. What is Mediafire? MediaFire provides a storage service in cloud-based and not physical. It saves and shares items including ... Read More

Minimum Number from Plus and Operations on Array Elements

Shubham Vora
Updated on 18-Jul-2023 17:16:15

164 Views

Problem Statement We have given an array of length ‘N’ containing some positive integers. Also, we have given the string of length ‘N-1’ containing only ‘*’ and ‘+’ characters, where ‘*’ is a multiplication operator, and ‘+’ is an addition operator. We require to perform the arithmetic operation with array elements in such a way that we can get a minimum positive integer value. Sample Examples Input array = [1, 2, 3], str = “*+” Output 5 Explanation It is the resultant value of ((1*2) + 3). Input array = [3, 3, 3, 3], str = ‘*++’ ... Read More

Make a String Non-Palindromic by Inserting a Given Character

Shubham Vora
Updated on 18-Jul-2023 17:13:31

208 Views

Problem Statement We have given a string str and character c in the input. We need to insert the given character c in the string at the index so that we can convert the string to non-palindromic. If we can’t convert the string to non-palindrome, print ‘-1’. Sample Examples Input str = ‘nayan’, c = ‘n’ Output ‘nnayan’ Explanation There can be multiple output strings as we can insert ‘n’ at any index in the given string. So, the output string can be ‘nnayan’, ‘nanyan’, ‘naynan’, ‘nayann’, etc. Input str = ‘sss’, c = ‘s’ Output ‘-1’ ... Read More

Difference Between HDLC and PPP

Pranavnath
Updated on 18-Jul-2023 17:12:42

4K+ Views

When it comes to information connect conventions, HDLC (High-Level Information Connect Control) and PPP (Point-to-Point Convention) are two broadly recognized guidelines. Whereas both conventions encourage the exchange of information between arranged gadgets, they contrast in a few crucial angles. This article points to shed light on the difference between HDLC and PPP, investigating their definitions, standardization, surrounding strategies, tending to components, mistake-taking care of capabilities, transaction highlights, verification back, association sorts, overhead contemplations, and applications. What is HDLC? High-level Data Link Control (HDLC) could be a synchronous bit-oriented information interface layer convention utilized for transmitting data over point-to-point and multipoint ... Read More

Advertisements