Plus one | LeetCode problem 66

  Рет қаралды 17,847

Technosage

Technosage

Жыл бұрын

Plus one
Leetcode problem number 66
Solution in JAVA
JAVA interview programming playlist:
• Interview Programming ...
Linkedin: / amrita-bala-a2b79460
#java #interviewquestions #leetcode

Пікірлер: 35
@dhruvavishwakarma253
@dhruvavishwakarma253 29 күн бұрын
Why are you not solving in Leetcode , In Leetcode this code didn't pass all test cases
@richiecarrasco4235
@richiecarrasco4235 5 ай бұрын
I love the way you explain these problems. thank you
@ashwinnair1035
@ashwinnair1035 9 ай бұрын
Great explanation please continue this series its really helpful
@mayanknagar2526
@mayanknagar2526 11 ай бұрын
Thanks for making this video
@SudharsanAshwin-pf3oq
@SudharsanAshwin-pf3oq 10 ай бұрын
What is the time and space complexity of this solution
@divyarathi4739
@divyarathi4739 Жыл бұрын
while input is 0 it is giving [1,0] it should only give [1]
@TechnosageLearning
@TechnosageLearning Жыл бұрын
Hi...its returning 1 only...Please take the code from git and try it out..
@7smessi803
@7smessi803 4 ай бұрын
Super logic🎉
@rajeshcr9800
@rajeshcr9800 Жыл бұрын
hi, what is the meaning of dig[i]++; how it work.. can we written in any different way dig[i]= dig[i+1]; Thanks Rajesh
@kapilpachori2208
@kapilpachori2208 Жыл бұрын
Hey i want to know how you have mastered logic building i am a beginner and making logic of a particular problem takes a lot of time and sometimes even not getting the logic of a question at all plz give some tips.
@TechnosageLearning
@TechnosageLearning Жыл бұрын
Hi It takes some time..Please continue your practice.. since you are a beginner, you can watch the solution and then solve yourself again ..when you will keep on practicing...you will get to know that same logics will repeat in multiple problems....and it ll start clicking automatically when you will see the problem..
@kapilpachori2208
@kapilpachori2208 Жыл бұрын
@@TechnosageLearning Thanks and beside logic building, what if I learn fundamentals of a particular ds & algo topic and solve leetcode problem of that topic, is this the optimal way of learning ds & algo
@TechnosageLearning
@TechnosageLearning Жыл бұрын
Yeah..You can do that way also..Or may be solve the problems and keep learning the logics...So that you will cover all topics as well as problems...
@ashwinnair1035
@ashwinnair1035 9 ай бұрын
github repo link?
@user-bi9ip5hv3l
@user-bi9ip5hv3l Жыл бұрын
Amazing....you think way too straight ahead... If I show you my attempt, you will laugh 🙂...thnx...
@Set_Goals963
@Set_Goals963 2 ай бұрын
it cannot work on array {0) plz correct code
@KRajesh-ej7dy
@KRajesh-ej7dy Жыл бұрын
Amrutha why u r writing
@TechnosageLearning
@TechnosageLearning Жыл бұрын
less than 9 condition makes it very simple..Listen the video again and try..You will definitely understand the conditions
@KiranMB-yl1xl
@KiranMB-yl1xl 4 ай бұрын
what if [9,9]
@Aditya26-y2i
@Aditya26-y2i Ай бұрын
Let's see
@user-eo5lm3xz5p
@user-eo5lm3xz5p 4 ай бұрын
can we have 3 sum leet code solution
@sayanmoulick5307
@sayanmoulick5307 10 ай бұрын
what about the cases of {9, 9} or {9,....,9} ?
@TechnosageLearning
@TechnosageLearning 10 ай бұрын
Hi..It will return the output as {1,0,0,0,0,0} which is correct output
@user-ic7du1vw4b
@user-ic7du1vw4b 9 ай бұрын
Kindly please tell me why you have converted this array into String type😅
@OnstreamGaming
@OnstreamGaming 3 ай бұрын
so that you can print an array without running a loop
@probeast267
@probeast267 10 ай бұрын
didi yaar logics nahi ban rahe kya karu pls help karo itne easy questions ke logic bhi nahi soch pa raha
@TechnosageLearning
@TechnosageLearning 10 ай бұрын
Keep solving more and more problems...ek din logics apne aap dimag me aane lagenge jab bht sari problems solve krne se bht sari approaches pta lag jayengi
@SravanKumar-cy8pp
@SravanKumar-cy8pp Жыл бұрын
Amruta I need string programs
@TechnosageLearning
@TechnosageLearning Жыл бұрын
Leetcode string programs?? Or any String programming questions??
@SravanKumar-cy8pp
@SravanKumar-cy8pp Жыл бұрын
Any string program s
@TechnosageLearning
@TechnosageLearning Жыл бұрын
Strings Programming Questions: kzbin.info/aero/PLjOcsOwEjb135TKtYNgd08hnioIV-C1rR Here are few string programming questions..you can check it out. Working on more programs, Will upload soon.. Stay connected. Thanks!
@user-bl1gg1ff1q
@user-bl1gg1ff1q 5 ай бұрын
import java.util.*; class Main { public static void main (String [] args){ int []nums={1,1,9}; System.out.print(Arrays.toString(plusOne(nums))) ; } public static int[] plusOne(int[] digits) { int n=digits.length; for(int i=digits.length-1;i>=0;i--){ if(digits[i]
@Rahulkumar-xb7so
@Rahulkumar-xb7so 11 ай бұрын
99 pe galt ans ayega
@TechnosageLearning
@TechnosageLearning 10 ай бұрын
Nhi ayega galat ans..It will return {1,0,0} which is a correct output! Thanks!
Median of Two Sorted Arrays | Leetcode problem 4 | O(log(m+n))
22:06
Plus One | leetcode 66 | Hindi
7:29
Codebix
Рет қаралды 22 М.
🌊Насколько Глубокий Океан ? #shorts
00:42
路飞被小孩吓到了#海贼王#路飞
00:41
路飞与唐舞桐
Рет қаралды 33 МЛН
The day of the sea 🌊 🤣❤️ #demariki
00:22
Demariki
Рет қаралды 106 МЛН
Reverse words in a string | Leetcode problem 151
6:08
Technosage
Рет қаралды 28 М.
How to Set Your Out of Office on Outlook Mobile
0:42
Westway IT
Рет қаралды 9 М.
Remove Element | Leetcode problem 27
6:30
Technosage
Рет қаралды 28 М.
feeling unmotivated but doing productive stuff 🫠
8:14
Anna's Archive
Рет қаралды 218
Maximum Subarray | Kadane's Algorithm | Leetcode 53
7:20
Technosage
Рет қаралды 6 М.
Two Sum problem | Leetcode problem 1
8:20
Technosage
Рет қаралды 12 М.
Functions Java and Advantages Of Functions in Java
1:38
Meenakshi Randev
Рет қаралды 440
Palindrome Number | Leetcode problem 9
6:57
Technosage
Рет қаралды 25 М.
Clicks чехол-клавиатура для iPhone ⌨️
0:59
ПОКУПКА ТЕЛЕФОНА С АВИТО?🤭
1:00
Корнеич
Рет қаралды 3,7 МЛН
OZON РАЗБИЛИ 3 КОМПЬЮТЕРА
0:57
Кинг Комп Shorts
Рет қаралды 967 М.
ИГРОВОВЫЙ НОУТ ASUS ЗА 57 тысяч
25:33
Ремонтяш
Рет қаралды 342 М.