Cursos
Cursos
Compilador de Código
Compilador de Código
Debatir
Precios
Teams
Iniciar sesión
Registrarse
Menu
Sesiones de PyR
Buscar
Buscar
Haz una pregunta
Haz una pregunta
what should be the value of i to the power i where i=square root of -1
numeric-operations
python
0 Votos
3 Respuestas
9th Mar 2018, 10:44 AM
Girish Vaisyaraj
Why in list (in python 3) to access the last element of a list, you use -1 and not -0?
indexers
lists
python
python3
1 Voto
4 Respuestas
15th May 2018, 6:39 PM
Eduardo Perez Regin
What i should count to last word in the string if i counting from last , -1 , -0 or 1.
javascript
js
2 Votos
2 Respuestas
20th Apr 2019, 4:24 AM
Bug Slayer
You are given a non-empty sequence of non-negative integers terminated by a -1. The -1 is not part of the input sequence.
loops
0 Votos
1 Respuesta
25th Sep 2019, 3:34 PM
Kartik Singh
find the minimum number of swaps required to make a string as symmetry string.if already then print 'symmetric'if not possibl -1
coding
palindrome
python
strings
symmetric
0 Votos
3 Respuestas
5th May 2021, 6:50 PM
Amrita Kanchan Singh
Write a program to read the numbers until -1 is encountered. Also count the negative, positives, and zeroes entered by the user.
python3
0 Votos
1 Respuesta
10th May 2022, 3:19 PM
Vijay saxena
write aprogram that calculates average mark of female students in class assume that the last valu read is Sentinel -1 from mark
c
programming
1 Voto
1 Respuesta
25th May 2019, 1:51 PM
seraj aldean
You will be given two words, 's' and 't'. You have to output the number of matching positions if s is an anagram of t, and -1 if
anagram
strings
1 Voto
9 Respuestas
8th Oct 2018, 9:57 AM
Nilutpol Kashyap
Need help or explanation.. are postfix and prefix in c++, c#, php or any language same ? when actually the value +1 or -1 ?
c#
c++
etc
java
math
php
postfix
prefix
0 Votos
6 Respuestas
26th May 2017, 1:58 AM
Mugfirfauzy Siregar
Write a code using do while loop to read the numbers until -1 and also count the +ve, -ve & 0's encountered by the users
c
code
cprogram
programming
-1 Voto
2 Respuestas
14th Apr 2020, 3:12 PM
Shaik Vajida
Upon having the input as sin(x)=1 or -1 or related values the order in the list isn't proper any more, try it.
math
python3
1 Voto
2 Respuestas
29th May 2017, 9:44 PM
Simon
Get n list and compare the values inside if the numbers are same then you have to count 1 if not then return -1
c
java
python3
0 Votos
2 Respuestas
24th Aug 2022, 1:21 PM
pooja balamurugan
What is the Method most efficiency to find in mat n*n (just ziro and one ) if exsist row thwn just ziro and colom just -1 ?
java
1 Voto
5 Respuestas
8th May 2017, 12:26 PM
yossi Nahmias
program in c++ to compare two strings and return 0 if the two strings are equal and -1 is strings are unequal
c++
help
0 Votos
2 Respuestas
23rd Jan 2018, 3:56 PM
Raj Zamal
You will be given two words, 's' and 't'. You have to output the number of matching positions if s is an anagram of t, and -1 if
anagram
strings
2 Votos
3 Respuestas
8th Oct 2018, 9:52 AM
Nilutpol Kashyap
write a function named nval that take 2 integer argument and return 1 if they have same number of factors. retur -1 if is negtif
me
0 Votos
2 Respuestas
22nd Jun 2019, 11:23 AM
Sifa Ngelelo
In the code I've used array splice method, why it only removes one item ? As I've used -1 as index and 3 as remove count. Help!
arrays
javascript
splice
1 Voto
2 Respuestas
22nd Jan 2020, 12:32 PM
Argon
l want to program code that compare two values x and y , return 1 if x is greater than y else return 0 if x is equal to y or else return -1 if x less than y . Then program must accept user input
function-arguments
python
0 Votos
6 Respuestas
13th Oct 2016, 8:20 AM
James T Togara
Can someone write a Python program which returns the longer of the shortest way between two points(for ex. fixed A and B) if there is a way exists between points and if there s no way between those 2 points the function returns -1
python
2 Votos
4 Respuestas
21st May 2017, 10:21 PM
Ali
why the answer of this code is [0, 1, 4, 9, 16, 25, 36, 49, 64] and not [0, 1, 4, 9, 16, 25, 36, 49, 64, 81] and iam remember that -1 starts from the last no. in the list , then why the answer is not include 81????
lists
python
0 Votos
3 Respuestas
4th Aug 2016, 5:31 PM
Ahmed Kamal
Method in python
-1
<
>
1:
def
function
h(x):
if
maximize
or
x
x
y
0 Votos
2 Respuestas
15th Mar 2020, 4:22 PM
Njood Jasser
Haz una pregunta
Haz una pregunta
< Anterior
1
2
Siguiente >
En tendencia hoy
C pointers
2 Votes
Python
0 Votes
Guys help please
0 Votes
Slicing in python
1 Votes
Python question
1 Votes
Control flow
0 Votes
HTML
0 Votes
Front-end vs Full-stack
1 Votes
Which mobile offline app can I use for HTML
0 Votes
HOW CAN I CREATE A GAME AS BEGINNER
0 Votes