Dhimputha Posted August 24, 2020 Author Report Posted August 24, 2020 On 8/24/2020 at 4:26 PM, Nimmakai said: nijanga bro, 1 day lo max 5 problem itunnai anthe.. ipatiki oka 17 emo solve chesa.. chala time taking ga undi . 1 Quote
Democraticcompulsion Posted August 24, 2020 Report Posted August 24, 2020 2 hours ago, Democraticcompulsion said: #Using mathematical iteration for x in t: for i in range(x): if (i*i)<(i+1)*(i+1): b=float(i) while b<i+1: b+=.01 if b*b<x<(b+.01)*(b+.01): t3.append(x) t3.append(round(b,2)) print(t3) #### Longest Palindrome substring print('Enter any word to find all palindrome substrings (3 letters or more) in it') stri = input() k=len(stri) l=0 m=1 list1=[] for l in stri: i=0 #string start char j=2 #increment1 while i+j+m<k+1: str1 = stri[i:(i+j+m)] str2 = str1[::-1] if str1 == str2: print(str1) list1.append(str1) print(list1) i=i+1 m+=1 #increment2 print('longest palindrome is',list1[-1]) for p in list1: list1.count(list1(p)) Python experts ee code ki feedback ivvandi please. Learning by myself. How do I do this in simpler methods unte cheppandi. TIA. Quote
Nimmakai Posted August 24, 2020 Report Posted August 24, 2020 37 minutes ago, Democraticcompulsion said: Python experts ee code ki feedback ivvandi please. Learning by myself. How do I do this in simpler methods unte cheppandi. TIA. Youtube lo chudu bro, emana suggestions untai optimal solution ala 👍 Quote
Democraticcompulsion Posted August 24, 2020 Report Posted August 24, 2020 4 minutes ago, Nimmakai said: Youtube lo chudu bro, emana suggestions untai optimal solution ala 👍 Will do. Asalu nenu rasindi ardam ayyela unda? Quote
OreyPandhi Posted August 24, 2020 Report Posted August 24, 2020 6 minutes ago, Democraticcompulsion said: Will do. Asalu nenu rasindi ardam ayyela unda? Language not so good for me so nenu aithey cheppalenu. Over to @kevinUsa @vampire Quote
Arjun9 Posted August 24, 2020 Report Posted August 24, 2020 Java is Universal.. but Python is good for non programmers... Python works very good for data analytics so... learn python and then focus on R, Stats blah blah or Python full stack ayithe - python + flask/django combo + No Sql/Mongo DB learn Agreed, FAANG lo end of the day algos/logical thinking imp.. nee approach ki value ekkuva istaaru vaalu i just started coding.. every day 1 problem solving and weekends may be 5 if time permits. Starting lo struggle untadhi as we are not used to it.. but slowly u will gain confidence.. 2 Quote
dasari4kntr Posted August 24, 2020 Report Posted August 24, 2020 1 hour ago, Democraticcompulsion said: Python experts ee code ki feedback ivvandi please. Learning by myself. How do I do this in simpler methods unte cheppandi. TIA. Github lo post chesi ...code review 3rd party tools lo aa github repo ni configure chesi choodu.... but manual over the shoulder.... antha quality code review raaka povachu...but give a try... 1 Quote
Vaampire Posted August 24, 2020 Report Posted August 24, 2020 35 minutes ago, Democraticcompulsion said: Will do. Asalu nenu rasindi ardam ayyela unda? Tough to follow the code. Str1, list1, str2, l, m etc variable names too confusion. The name of the variable should suggest what it is. for ex: u can use start, end to represent pointer positions while iterating a string. Between, I am not expert in python. I used python for regular job work. For interviews, I mostly use c# & java Quote
Nimmakai Posted August 24, 2020 Report Posted August 24, 2020 35 minutes ago, Democraticcompulsion said: Will do. Asalu nenu rasindi ardam ayyela unda? Dynamic programming use chesthe better 1 Quote
Amrita Posted August 24, 2020 Report Posted August 24, 2020 7 hours ago, Dhimputha said: Which one is easy? pros/cons veskondi faang ki which language is best choice? Language lite algorithms data structures etc etc important. Without using API white boarding cheyadam , design ivanni important . 2 Quote
Democraticcompulsion Posted August 25, 2020 Report Posted August 25, 2020 1 hour ago, Vaampire said: Tough to follow the code. Str1, list1, str2, l, m etc variable names too confusion. The name of the variable should suggest what it is. Got it. I was looking to solve 2 questions on leetcode with that code. Find all palindrome substrings and also the longest. Last 2 lines (incomplete) were for identifying reoccuring substrings. Code solves the problems. Will keep in mind the user frindliness for the code. Thanks. Quote
Mr Mirchi Posted August 25, 2020 Report Posted August 25, 2020 8 hours ago, dasari4kntr said: i have good experience with c#, java, javascript/typescript..etc now learning python... if i were you...i will choose python... C# and java naaa rendu oppoaite poles kadha ba howwww rendu nerchukunnav Quote
dasari4kntr Posted August 25, 2020 Report Posted August 25, 2020 3 minutes ago, Mr Mirchi said: C# and java naaa rendu oppoaite poles kadha ba howwww rendu nerchukunnav Not much difference...same oops.. few differences here and there...that’s it... even packaging also not much different...here nuget there maven..etc only big difference i see is WPF... Quote
CurryDi Posted August 25, 2020 Report Posted August 25, 2020 any one is fine, coursera lanti website lo practical course structure vuntadi basics learn from that. have an goal to commit something in git-hub until ur comfortable with syntax Quote
CurryDi Posted August 25, 2020 Report Posted August 25, 2020 5 minutes ago, dasari4kntr said: Not much difference...same oops.. few differences here and there...that’s it... even packaging also not much different...here nuget there maven..etc only big difference i see is WPF... most of c# developer will not be comfortable with java at all 😆 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.