All Questions

1
answer

Which sort algorithm does .NET use by default in a list?

I have a problem that I have to perform memory sorting on a large number of items and would like to know which algorithm .NET uses to sort when we call the Sort() method of a list, for example. I need to know because I realized that my...
asked on 11.10.2017 / 17:00
5
answers

How to generate 200,000 primes as fast as possible in Python?

   Attention: I'm not looking for pieces of code ready. I just want someone to help me think of some way to generate these 200,000 primes as efficiently as possible in Python. I'm solving the # 61 CodeAbbey issue, but I can not think of...
asked on 23.08.2017 / 19:15
3
answers

Inaccurate result in calculation with broken numbers

Problem Test on the consoles of your browsers: 1067.11-1000 = 67.1099999999999 The correct one would be 67.11 Could anyone explain this to me? And how do I resolve this?
asked on 13.02.2014 / 15:23
3
answers

What to use require / include / require_once / include_once?

I'm developing an application in PHP and would like to know when and why to use% or require or include or require_once ? I also noticed what you can do in these ways and it works: require_once myfile.php; require_on...
asked on 09.05.2014 / 10:18
6
answers

Input type="password" with the eye to show password

I need to put a <input type="password"> with that password reveal eye, however it has to work as follows: User clicks on eye and loosens the characters again. Here is a sample photo:     
asked on 04.12.2015 / 16:56
5
answers

Today (06/30/2015) we will have a second more, what can be the consequences for our systems?

If someone does not know, today 30/06/2015 will have a second more. That is, today after the 23h59m59s we will have 23h59m60s ! This is to do the correction of the International Atomic Time. I know that there are severa...
asked on 30.06.2015 / 22:07
13
answers

Phone Mask using jQuery Mask Plugin

I need to change the position of the "-" in the mask. <label for="telefone" >Telefone</label> <input style="width:25%; margin-right:25% " type="tel" name="telefone" id="telefone" pattern="\([0-9]{2}\)[\s][0-9]{4}-[0-9]{4,5}" /&g...
asked on 28.11.2014 / 13:18
2
answers

How to make lines intersecting in a border, with CSS?

Does anyone know how to make a border that "leaks" out of the div as well as into the image? I need this cross border of the lower corners, these "xiszinhos" or "crosses" Thank you in advance     
asked on 19.04.2016 / 15:29
3
answers

Problems with "or" in C ++

I need to make an algorithm that gets 3 different numbers, and if it receives repeated numbers, it informs an error message. My program is all working properly, but when I put the line to warn of the error I try to use Or and it does n...
asked on 06.03.2015 / 01:12
3
answers

Why can I create two functions with the same JavaScript signature?

I am having doubts about a certain issue in Javascript, suppose the following scenario: function teste() { console.log("teste1"); } function teste() { console.log("teste2"); } teste(); In this case I realized that my...
asked on 16.03.2017 / 14:47