Sirisha Challagirisirishachallagiri.hashnode.dev·Nov 11, 2023Swapping of two numbersswapping two numbers by using a temporary variable public class Swap { public static void main(String[] args) { int a=10,b=20; System.out.println("Before swapping: a="+a+",b="+b); int temp = a; a = b; b=temp; System.err.prin...Discuss·1 likeCode With SiriJava
Ogunuyo Ogheneruemu Biruemu.hashnode.dev·Jul 29, 2023Building a Currency Exchange and Swap Feature in React NativeIn this blog post, we will focus on the implementation of the currency exchange and swap feature in a React Native application. This feature enables users to convert an amount from one currency to another with real-time exchange rates and also allows...DiscussReact Native
Haneunhanlee.hashnode.dev·Apr 24, 2023Efficient Algorithm in Java for Solving the Maximize The Number ProblemProblem Problem_Link Problem Solving Method Goal: Swap the 1 at the end and the 0 at the front. Condition: The number of swaps must be less than the given k. Use StringBuilder: Since the string needs to be swapped, StringBuilder is the most effici...Discuss·34 readsAlgorithm Solving StudyStrings
Navnath Jadhavnavnathjadhav.hashnode.dev·Mar 22, 2023Swap Two Numbers: In 5 Different WaysProgram to swap two numbers Input: Enter the value of X and Y num1=10 num2=20 Before swapping: 10 20 Output: num1=20 num2=10 After swapping: 20 10 Solution: Language Used: Java Approach 1: swap two numbers using the third variable import java...Discuss·65 readsJava
Abhishek Kumarabhishk.hashnode.dev·Mar 16, 2023What is Swap Space in Linux and Should You Use It?Swap space is a feature of Linux that allows the system to use some disk space as additional memory when the physical memory (RAM) is full. Swap space can be either a dedicated partition on the hard disk or a special file on the filesystem. In this b...Discuss·45 readsswap
Line Tousignantblockversity.hashnode.dev·Feb 9, 2023How to create a Swap Pool on Flow with IncrementThe following article is the first in a series of articles that will help you build a DAO on the Flow network using Cadence. Increment is a fundamental DeFi infrastructure in the Flow ecosystem, one that serves as a liquidity engine for fungible toke...DiscussTutorial and code samples on building a DAO on Flow blockchainswap
Utsab Timsinautshab.hashnode.dev·Jan 9, 2023Add Swap Space on UbuntuFor Lightsail system there is a limitation of 1Gb of Memory space on Free tier. To gain the most out of the system we need to increase the memory capability of the system by adding the swap storage.Here's how its done. Creating a Swap File In this ex...Discuss·89 readsswap
Hari Krishna Anemharikrishna.hashnode.dev·Jan 15, 2022JavaScript: Swapping of 2 variables without using temp variable and arithmetic operationslet a = 1; let b = 3; [a, b] = [b, a]; console.log(a, b); Output: 3 1 Execute above code hereDiscussswap
Bogdan CornianuProbogdancornianu.hashnode.dev·Aug 11, 2018Change swap size in Ubuntu 18.04 or newer[Updated July 26, 2020]: Change swapfile permission; Set swapfile in /etc/fstab. Swap is a special area on your computer, which the operating system can use as additional RAM.Starting with Ubuntu 17.04, the swap partition was replaced by a swap file....Discussswap