Weighted Job Scheduling in JAVA
You receive a list of jobs that have three elements: start time, finish time and profit. You have to schedule the jobs with no...
oanaunciuleanu
22 nov. 20221 min de citit
12 afișări
0 comentarii
Total number of non-decreasing numbers with n digits in JAVA
A non-decreasing number has every digit greater than or equal to the previous digit. Given the number of digits, find how many numbers...
oanaunciuleanu
22 nov. 20221 min de citit
8 afișări
0 comentarii
Tiling Problem in JAVA
You can use a board that is 2 x n size. The tiles are of size 2 x 1. Count the number of ways to tile the board. Tiles can be placed...
oanaunciuleanu
22 nov. 20221 min de citit
10 afișări
0 comentarii
Subset Sum Problem in JAVA
Given a set of non-negative integers, and a value sum, determine if there is a subset of the given set with the sum equal to the given...
oanaunciuleanu
22 nov. 20221 min de citit
7 afișări
0 comentarii
Shortest Common Supersequence in JAVA
Given two strings as input, the task is to find the length of the shortest string that has both strings as subsequences. Solution: 1. ...
oanaunciuleanu
22 nov. 20221 min de citit
3 afișări
0 comentarii
Palindrome Partitioning in JAVA
Starting from a string, we determine it’s a palindrome partitioning by diving it into substrings, each being a palindrome. In our problem...
oanaunciuleanu
22 nov. 20221 min de citit
4 afișări
0 comentarii
Mobile Numeric Keypad Problem in JAVA
We use a mobile numeric keyboard. You can only press buttons that are up, left, right or down to the current button. You are not allowed...
oanaunciuleanu
22 nov. 20222 min de citit
2 afișări
0 comentarii