Jump to content

.


Dhimputha

Recommended Posts

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

.

  • Thanks 1
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 👍

Link to comment
Share on other sites

4 minutes ago, Nimmakai said:

Youtube lo chudu bro, emana suggestions untai optimal solution ala 👍

Will do. Asalu nenu rasindi ardam ayyela unda?

Link to comment
Share on other sites

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..

  • Thanks 2
Link to comment
Share on other sites

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...

  • Upvote 1
Link to comment
Share on other sites

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

Link to comment
Share on other sites

35 minutes ago, Democraticcompulsion said:

Will do. Asalu nenu rasindi ardam ayyela unda?

Dynamic programming use chesthe better Nimmakai

  • Upvote 1
Link to comment
Share on other sites

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 . 

  • Upvote 2
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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...

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 😆

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...