Akshaya GangatharanforMakingWeb3Easygrakshaya.hashnode.dev·Oct 22, 2024Level Up Your Token Swap Game: Adding Native Swaps & Withdrawals 🌊💰Hey there, crypto fam! If you’ve been following along, you already know how to build a basic token swap DApp. If you haven’t checked out the first part yet, you can find it here. Now, it’s time to level up! 🚀 Today, we're diving into how to swap nat...DiscussSolidity
Akshaya GangatharanforMakingWeb3Easygrakshaya.hashnode.dev·Oct 22, 2024Build Your Own Token Swap Contract in SoliditySwap Tokens In this tutorial, we’re gonna walk you through creating a dope token swap smart contract in Solidity. This bad boy lets users swap one ERC-20 token for another, all while collecting a little fee. Let’s get it! Prerequisites Before diving ...DiscussSolidity
Akshaya Gangatharangr-akshaya.hashnode.dev·Oct 22, 2024Build Your Own Token Swap Contract in SoliditySwap Tokens In this tutorial, we’re gonna walk you through creating a dope token swap smart contract in Solidity. This bad boy lets users swap one ERC-20 token for another, all while collecting a little fee. Let’s get it! Prerequisites Before diving ...DiscussSolidity
Sonal Singhswapping-value-of-2-variables-a-and-b.hashnode.dev·Oct 16, 2024Swapping the value of a and b without using a temporary variable.The most obvious way to perform a swap is to use a temporary C variable; however, there are also some unique methods to swap values without using any extra memory. In this article, we will see two different and efficient ways to swap without a tempor...Discuss·2 likes·61 readsC
Sebastián Álvarezs3v4st0s.hashnode.dev·Oct 8, 2024Efficiently Resolve Linux Server Resource Bottlenecks with the Swap TechniqueYou have probably worked with a server that, due to limited resources while handling a heavy task, required you to use some tricks. I am currently learning how to manage a Linux server, and my goal with this article is to share what I have learned ab...Discuss·31 readsLinux
Yash Sharmayashsharma8433.hashnode.dev·Jun 15, 2024Step-by-Step Guide to Swap Two Numbers in Java :Swapping Two Numbers in Java Problem Description We are given two variables, a and b, with initial values. The task is to swap the values of these two variables. Examples Example 1: Input: a = 10, b = 20 Output: a = 20, b = 10 Example 2: Input...Discussswap
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