Sheldon L. Cooper's user avatar
Sheldon L. Cooper's user avatar
Sheldon L. Cooper's user avatar
Sheldon L. Cooper
  • Member for 13 years, 8 months
  • Last seen more than 13 years ago
66 votes

What does string::npos mean in this code?

43 votes

Java switch statement: Constant expression required, but it IS constant

29 votes

How can I safely average two unsigned ints in C++?

28 votes
Accepted

Binary Search to Compute Square root (Java)

15 votes
Accepted

Why are the parameters to `atan2` “backwards”?

12 votes
Accepted

Dijkstra's algorithm with negative edges on a directed graph

8 votes

main can't be void

7 votes

Are You A Prime Number

6 votes
Accepted

Building an expression with maximum value

6 votes
Accepted

How to count the number of operations in a loop and give a theta characterization

6 votes
Accepted

solution to towers of Hanoi problem

5 votes

Minimum window width in string x that contains all characters of string y

4 votes

Median Algorithm in O(log n)

4 votes

Matching non-whitespace in Java

4 votes
Accepted

Find the successor without using parent pointer

3 votes

Allowing a maximum number of times for system to accept incorrect PIN

3 votes
Accepted

help in find complexity of this algorithm

3 votes

Picking five numbers that sum to S

3 votes

Brute force Algorithm for creation of Sudoku Board

3 votes

When to use a Map instead of a List in Java?

3 votes
Accepted

Counting sort - implementation differences

3 votes
Accepted

How to browse through probable results of history in Unix shell using CTRL-R?

3 votes
Accepted

Finding Squares in an array

2 votes

A problem from a programming competition... Digit Sums

2 votes

NP-hard problems that are not NP-complete are harder?

1 vote

Maintain a top-k set in Java

1 vote

Exponential Formula for negative direction?

1 vote
Accepted

Is this a correct way of sorting by title, position and then order by using a Comparator?

1 vote

How can I build a lookup table in C++?

1 vote

I have a Python list of the prime factors of a number. How do I (pythonically) find all the factors?