Skip to content

Commit b9e0829

Browse files
refactor 650
1 parent 7306ba6 commit b9e0829

File tree

1 file changed

+0
-22
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+0
-22
lines changed

src/main/java/com/fishercoder/solutions/_650.java

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,5 @@
11
package com.fishercoder.solutions;
22

3-
/**
4-
* 650. 2 Keys Keyboard
5-
*
6-
* Initially on a notepad only one character 'A' is present. You can perform two operations on this notepad for each step:
7-
8-
Copy All: You can copy all the characters present on the notepad (partial copy is not allowed).
9-
Paste: You can paste the characters which are copied last time.
10-
Given a number n. You have to get exactly n 'A' on the notepad by performing the minimum number of steps permitted. Output the minimum number of steps to get n 'A'.
11-
12-
Example 1:
13-
Input: 3
14-
Output: 3
15-
16-
Explanation:
17-
Intitally, we have one character 'A'.
18-
In step 1, we use Copy All operation.
19-
In step 2, we use Paste operation to get 'AA'.
20-
In step 3, we use Paste operation to get 'AAA'.
21-
22-
Note:
23-
The n will be in the range [1, 1000].
24-
*/
253
public class _650 {
264

275
public static class Solution1 {

0 commit comments

Comments
 (0)