
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 206 Articles for Programming Languages

277 Views
The assembler and interpreter are responsible for the execution of a program. The assembler converts the code written in an assembly language into the machine code. Interpreters execute the code directly in a sequential order. In this article, we will discuss the difference between assembler and interpreter. What is an Assembler? An assembly language consists of mnemonics to write code in human-readable language. These mnemonics are GO, HALT, JUMP, NOT, and many more. An assembler is used to translate the code written in assembly language into machine language which could be understood by the machine. Types of Assemblers Assemblers are ... Read More

3K+ Views
Programming is of different types like structured, procedural, functional, object-oriented, etc. All these programming types have different features and developers have to choose the one to develop a program or an application. In this article, we will discuss the difference between structured and object-oriented programming. What is Structured Programming? Structured programming is a type of programming in which separate modules are used to develop a program. All these modules are properly structured. This is a type of programming in which developers have the opportunity to create user-defined functions. Programmers can follow the logic of the program easily. Programming languages that ... Read More

446 Views
The Score of a String is a concept which is used to calculate the score based on the sum of the absolute differences between the ASCII values of adjacent characters in the string. Problem Statement Given a string s, calculate the score of the string. The score is defined as the sum of the absolute differences between the ASCII values of adjacent characters. Example Scenario 1 Input: s="abc" Output: 2 The ASCII values of the characters in s are 'a' = 97, 'b' = 98, 'c' = 99. So, the score of s = |97-98|+|98-99|= 1+1 ... Read More

133 Views
The Maximum Prime Difference is a problem used to determine the largest difference between indices of two prime numbers in a given array. Problem Statement Here, we have given an array of integers as nums. our task is to find the maximum prime difference between the indices of any two prime numbers in an array. In the given array if we have only one prime number then it returns 0 and if no prime number returns -1. Example Scenario 1 Input: arr = [11, 4, 7, 6, 13] Output: 4 The prime numbers are 11 (index 0), ... Read More

231 Views
The problem “Minimum Operations to Make the Median of the Array Equal to K” is used to adjust the elements of an integer array so that its median becomes equal to a given value k. In one operation, you can increase or decrease any element by 1. Problem Statement The goal is to find the minimum number of such operations to make the median of the array equal to K. The median of an array is the middle element when the array is sorted in non-decreasing order. The larger one is considered the median if there are two middle ... Read More

586 Views
The Longest Strictly Increasing or Strictly Decreasing Subarray problem is used to find the maximum length of the contiguous subarray within a given array where the elements are either strictly increasing or strictly decreasing. Problem Statement Given an array of integers nums, return the length n of the longest subarray of n which is either strictly increasing or strictly decreasing. Example Scenario 1 Input: nums = [1, 3, 2, 4, 3, 5, 4, 6] Output: n = 2 The longest strictly increasing subarrays are [1, 3], [2, 4], [3, 5], and [4, 6]. The longest strictly decreasing subarrays ... Read More

102 Views
The Latest Time You Can Obtain After Replacing Characters sub-task is applied to an input string, in which the string is represented as a 12-hour format time when the maximum number of characters are replaced by '?'. In a 12-hour format time, "HH:MM” where HH is an element from the set {00, 01, …, 10, 11} and MM is also an element from the set {00, 01, …, 59}. The earliest possible time is 00:00, and the latest time is 11:59. Problem Statement In this problem statement, the goal is to replace all "?" characters in the string s ... Read More

223 Views
The Count Alternating Subarrays are used to count the number of subarrays where no two adjacent elements are similar. we can also call these subarrays as alternating subarrays. Problem Statement Before understanding what is "Count Alternating Subarrays" let's see what is a sub-array, and alternating sub-arrays. A subarray is part of an array formed by removing some or no prefixes of the array and removing some or no suffix elements of the given array. While dividing an array into multiple sub-arrays there ... Read More

443 Views
There are different types of computer languages which are used to make various types of software applications. In this article, we will talk about the difference between scripting and programming languages. Scripting Language Scripting language is a programming language in which a program is interpreted at runtime. The process of compiling is not performed in these languages. Scripting languages are used to establish communication between different programming languages. Types of Scripting Languages Scripting languages are of two types which include server side and client side. Server Side Scripts Server-side scripts are developed in such a way that they work at ... Read More

473 Views
What is Hastebin? Hastebin is a website which users can use to write text and code snippets and store them to share with other users with the help of a URL. Users like the website because of its simple user interface. It consists of different commands that you can use to make a new text snippet, store the one on which you are working, and open the existing ones for editing. Snippets are formatted by Markdown by default but you can use the Just Text command to use plain text. How to choose a Hastebin Alternative? There are many advantages ... Read More