Blog | Board Infinity

Blog | Board Infinity

At Board Infinity we have authors leading in their profession sharing their insights, ideas and inspiration. Here influential thinkers, creators, makers and doers are found in one place.

How to reverse a string in Javascript?

How to reverse a string in Javascript?

Introduction One of the most typical JavaScript interview questions during the technical round is how to reverse a string. Interviewers could ask you to build various techniques for reversing strings, to do it without the use of built-in methods, or even to do so by utilising recursion. Several tens of

Blog | Board Infinity
Blog | Board Infinity
Software Development
Joins and Its Types in SQL

Joins and Its Types in SQL

Overview Joins in SQL are used for retrieving data from several relations. A join is formed whenever multiple relations are listed in the same SQL statement. There are four kinds of joins in SQL-inner, left outer, right outer, and full outer join. In this article, we shall learn about all

Blog | Board Infinity
Blog | Board Infinity
Data Science
Learn about Throw and Throws in Java

Learn about Throw and Throws in Java

In Java, the concept of Throw and throws are useful in exception handling. A throw keyword raises an exception explicitly from a method or code block, while throws get used in a method's signature. What is Throw in Java? In Java, the throw keyword raises an error that the programmer

Blog | Board Infinity
Blog | Board Infinity
Software Development
A Quick Guide to Page Replacement Algorithm

A Quick Guide to Page Replacement Algorithm

Introduction In this article, we will discuss the page replacement algorithm in the operating system. The page replacement algorithm is responsible for deciding which page is required to be replaced if a new page comes in. Page fault The page fault occurs when a running program tries to capture the

Blog | Board Infinity
Blog | Board Infinity
operating system
upcasting and down casting representation

Learn about Upcasting and Down Casting

Introduction The act of converting from one type to another is known as type casting. Type casting is a feature that permits the form or type of a variable or object to be converted into another sort of object. The various data types in java are char, int, short, long,

Blog | Board Infinity
Blog | Board Infinity
Software Development
Understanding Exception Handling in Python

Understanding Exception Handling in Python

What is an Exception in Python An event that occurs during the execution of the program and obstructs the regular flow of the program's instructions is an exception. A Python script typically raises an exception when it comes across a situation that it cannot handle. A Python object that represents

Blog | Board Infinity
Blog | Board Infinity
Python
How to use Python for Permutations and Combinations?

How to use Python for Permutations and Combinations?

Python string permutations The permutations() function makes it simple to complete a task like discovering every possible arrangement of the letters in a Python string. EXAMPLE import itertools st = "ABC" per = itertools.permutations(st) for val in per:     print(*val) write your code here: Coding Playground OUTPUT A B C

Blog | Board Infinity
Blog | Board Infinity
Python
What are Collections in Python?

What are Collections in Python?

Introduction Data structures like lists, tuples, arrays, dictionaries, etc. are examples of data structures that are usually referred to as collections in Python. A built-in collections module in Python offers extra data structures for data collections. The six most popular data structures are included in the collection modules. Defaultdict A

Blog | Board Infinity
Blog | Board Infinity
Python
thread sleep method in java

Learn about Thread Sleep Method in Java

Introduction The Java Thread.sleep() method allows you to pause a thread's execution for a specified period in milliseconds. Negative values are not allowed for milliseconds. Otherwise, it will throw an IllegalArgumentException. sleep(long millis, int nanos) is another method for pausing thread execution for a specific time. The values

Blog | Board Infinity
Blog | Board Infinity
Software Development
find smallest/largest element in an array

How to find the kth smallest/largest element in an array?

Overview Given an unsorted array “arr”, find and print the “kth” smallest/largest element of the array. Scope * The method of sorting the array. * The method of using a min-heap data structure. * The method of using a max-heap data structure. By sorting the array Concept We can sort the given

Blog | Board Infinity
Blog | Board Infinity
DSA