Python Forum
Drop Dead Simple Interview Questions
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Drop Dead Simple Interview Questions
#17
(Feb-13-2017, 08:56 PM)nilamo Wrote: Does sqrt = lambda n: n ** 0.5 count as cheating? :p
Yes =p

(Feb-13-2017, 08:56 PM)Ofnuts Wrote: Well, you didn't think about the thousands separators either. And this question is more complicated than you think.
I tend to want a solution that accepts what most programming languages do for floats (without concern for underflow/overflow), in ASCII and the locale I share with the candidate. So, no "thousands separator" and the decimal separator is a dot rather than a comma. I also don't expect scientific notation, but I appreciate it when candidates suggest it.
Reply


Messages In This Thread
Drop Dead Simple Interview Questions - by nilamo - Feb-13-2017, 05:56 PM
RE: Drop Dead Simple Interview Questions - by wavic - Feb-13-2017, 09:02 PM
RE: Drop Dead Simple Interview Questions - by micseydel - Feb-13-2017, 09:02 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Pipenv & Requests Author Kenneth Reitz Interview Evrone 1 2,172 Jan-28-2021, 02:16 PM
Last Post: elizabethlvova
Star Flask Creator Armin Ronacher Interview elizabethlvova 1 2,009 Dec-16-2020, 09:10 AM
Last Post: Evrone
  Becoming a Self-Taught Programmer: Cory Althoff Interview Evrone 0 1,953 Dec-16-2020, 08:49 AM
Last Post: Evrone
  PEP 594 -- Removing dead batteries from the standard library ichabod801 3 2,866 May-31-2019, 01:23 PM
Last Post: heiner55
  Best resource to learn and pass interview oryucouk 5 3,195 May-18-2019, 05:19 AM
Last Post: heiner55
  MIT Interview with Guido Larz60+ 3 3,449 Nov-27-2018, 10:45 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020