What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-01-31 03:30:10
Kruskal’s Algorithm in javascript
const kruskal = graph => { const { length } = graph; const parent = []; let ne = 0; let a; let b; let u; let v; const cost = initializeCost(graph); // {1} while (ne < length - 1) { // {2} for (let i = 0, min = INF; i < length; i++) { // ... Add solution -
VBA 2022-01-29 09:46:38
excel vba create an array from a range
v = [a1:b20] 'If v is dimensioned as a variant then he above creates a 2d array, '20 rows high by 2 columns wide and those 40 array elements contain 'the values from the specified range. 'The square brackets are shorthand notation. Another way to code ... Add solution -
Other 2022-01-28 19:41:03
Export Sqlite Database as csv in android
public boolean exportDatabase() { DateFormat df = DateFormat.getDateInstance(DateFormat.SHORT, Locale.getDefault()); /**First of all we check if the external storage of the device is available for writing. * Remember that the ext... Add solution -
C++ 2022-01-28 16:40:53
find a member variable in a vector of objects cpp
//Using a lambda function (only C++11 or newer) std::vector<Type> v = ....; std::string myString = ....; auto it = find_if(v.begin(), v.end(), [&myString](const Type& obj) {return obj.getName() == myString;}) if (it != v.end()) { // found... Add solution -
Other 2022-01-27 23:51:25
prodigy hack download windows extension
@ -0,0 +1,86 @@ function closeit(){ prodigydiv.remove() } setTimeout("closeit", 3000); function getallCurrencies() { PIXI.game.prodigy.player.backpack.data.currency=[] x = PIXI.game.state.states.Boot._gameData.currency for (i in x) { PIXI.... Add solution