Skip to content

Commit 1048fa5

Browse files
edit 400
1 parent 8426224 commit 1048fa5

File tree

1 file changed

+6
-1
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+6
-1
lines changed

‎src/main/java/com/fishercoder/solutions/_400.java

+6-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,12 @@
2525
*/
2626
public class _400 {
2727

28-
//credit: https://discuss.leetcode.com/topic/59314/java-solution
28+
/**credit: https://discuss.leetcode.com/topic/59314/java-solution:
29+
*
30+
* 1. find the length of the number where the nth digit is from
31+
* 2. find the actual number where the nth digit is from
32+
* 3. find the nth digit and return
33+
* */
2934
public int findNthDigit(int n) {
3035
int len = 1;
3136
long count = 9;

0 commit comments

Comments
 (0)