python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Does swap() function works in iostream header?
#include <iostream>
using namespace std;
int main(){
swap(a[i],a[j])
}
In this the swap function work automatically or I need to create a another swap function to solve this?
Rio_t
Votes: 0
Answers: 1
When using swapExactTokensForTokensSupportingFeeOnTransferTokens in web3 on Pancakeswap I get no results,. It executes, but gives no error no result
I'm trying to do a swap on Pancakswap using JS and web3. I am using the swapExactTokensForTokensSupportingFeeOnTransferTokens function on the routerV2 contract.
The code in question:
let result = ...
David Pawlak
Votes: 0
Answers: 0
Algorithm to swap subsequences of 2 permutations
Given 2 permutations of n elements (1 to n) that are unordered, I need to check if it is possible to go from the first one to the second one using the following swapping method:
Choose a subsequence o...
S H
Votes: 0
Answers: 1
Sliding Puzzle using BFS
I am working on Leetcode problem https://leetcode.com/problems/sliding-puzzle/
class Solution {
public:
int slidingPuzzle(vector<vector<int>>& board) {
int res = 0;
...

GigiWithoutHadid
Votes: 0
Answers: 2