Questions tagged as 'array'

3
answers

How to use an Array array and declare variables

Hello I'm just new to PHP I want to declare variables with the result of a while of an Array <?php include("conexion.php"); $query4= mysqli_query($conexion,"SELECT refprofesor FROM asigna_materia WHERE refgrupo='3-A' AND refcarrera='09TIC...
asked by 18.08.2018 / 05:52
1
answer

Convert JavaScript Object Array

You would need to convert an object returned from an AJAX call to another object with different properties. The object in question has a structure similar to this: [ { campo1: "algun valor", campo2: { Id: 12345567, Nombr...
asked by 08.08.2018 / 22:59
0
answers

Problem with arrays, index exceeded c # [closed]

I have a class that gets data of API , I'll explain all the code because I really do not know where the problem is. public static void Obtener_Enemigos() { RiotSharp.RiotApi Api = RiotApi.GetDevelopmentInstance(_Key)...
asked by 14.08.2018 / 18:58
1
answer

Mini-Max Sum Hacker Rank

package solution; import java.io.*; import java.math.*; import java.security.*; import java.text.*; import java.util.*; import java.util.concurrent.*; import java.util.regex.*; public class Solution { // Complete the miniMaxSum functio...
asked by 11.08.2018 / 20:03
1
answer

concatenate 2 array with condition in python

I have 2 array, of 2 columns each. Array A has the form: pid track 0 77vFvcdWZi0ZqiDOoHU3YI 1 0e9hR1vTrzlUvFH5PgA9rY 2 00z4wF0iJsp6GwDkQxkGs6 3 0CyRloqqjpeKEAd3cO6J6z 4 0c1gHntWjKD7QShC8s9...
asked by 24.05.2018 / 10:05
2
answers

Compare items in a list in Python

I need to solve an exercise and I do not know how to finish it because I have a hard time making comparisons and other lists. The exercise asks me to build a program that uses the Egyptian multiplication method, giving me an example 125x41 . Th...
asked by 12.12.2018 / 00:35
1
answer

Binary search, return of all elements of an array that are equal

The binary search always returns the first element that is equal to the one we are looking for, but as we could do to return the positions of all the elements that are equal to the one we are looking for, for example, we have a vector of: H-H...
asked by 18.11.2017 / 11:56
2
answers

How to send an object / array from node to pug (jade) and render it?

Since node, I have something like this: var nombres = ['Saab','Volvo','BMW']; app.get('/', function(req, res){ res.render('index', {nombres: nombres}); }); then in pug: - var nombres1 = {nombres}; html(lang="es") head title= "Itris INF...
asked by 26.07.2017 / 02:31
1
answer

Rare characters when decoding chain in Base64

Good, I've been trying for several days to pass a chain in base64 to something worthy, I explain that I've tried to see what solution I can give you. First of all I use PHP, the string is encoded in C # with Convert.Tobase64String()...
asked by 02.06.2017 / 23:25
0
answers

First PHP associative array key does not work

In PHP, the problem I have is that when I go through an associative array like this, it shows me all the fields correctly, foreach ($documentos as $doc) { foreach ($doc as $key => $value) { echo $key .' --> '. $value . '<...
asked by 05.03.2018 / 10:04