# Tag: Algorithm

### LeetCode Reverse Integer (ValueError: invalid literal for int() with base 10: '' )

Given a signed 32-bit integer x, return x with its digits reversed. If reversing x causes the value to go ...

### How to get all the seasons from a list of months in pandas dataframe?

I'm analyzing a dataset where I have medical bootcamp informations. From start date and end date(day/month/year) of this bootcamps, I've ...

### How could we count the elements inside a doubly linked list (circular list), where we do not know the initial state nor where is head / tail‽

I am doing the following programming exercise: You are in a Train that is permanentely moving in a circle.The Train ...

### Brute force sudoku solver algorithm in Java problem

Everything seems to work fine in the algorithm besides the solve method. When it executes the program using a solvable ...

### Algorithm for combinations

This is the Programm: public List<List<Fieldmatrix>> permute(List<Fieldmatrix> fields, int start, List<Fieldmatrix> prefix) { List<List<Fieldmatrix>> combinations = new ArrayList<>(); if (start ...

### efficient sorted Cartesian product of 2 sorted array of integers

Need Hints to design an efficient algorithm that takes the following input and spits out the following output. Input: two ...

### Why are λ-calculus optimal evaluators able to compute big modular exponentiations without formulas?

Church numbers are an encoding of natural numbers as functions. (\ f x → (f x)) -- church number 1 ...

### Higher-order unification

I'm working on a higher-order theorem prover, of which unification seems to be the most difficult subproblem. If Huet's algorithm ...

### Is there any type inference system that works in all cases?

Is there any type inference algorithm that can always (or almost always) infer the correct type? I know that the ...

### Binary Search with an unknown number of items

Assuming you don't know the number of elements you are searching and given an API that accepts an index and ...

### Calculate average runtime of binary search with guarantee that search value is in array

I understand that binary search is O(logn) for a sorted array. However, I want to know if it is possible ...

### Worst case time complexity lists

I know that the best, average and worst case time complexities of binary search are at Best O(1); Average O(log ...

Page 1 of 83 1 2 83