Cracking the Coding Interview: 150 Programming Questions and Solutions


Gayle Laakmann McDowell - 2008
    This is a deeply technical book and focuses on the software engineering skills to ace your interview. The book is over 500 pages and includes 150 programming interview questions and answers, as well as other advice.The full list of topics are as follows:The Interview ProcessThis section offers an overview on questions are selected and how you will be evaluated. What happens when you get a question wrong? When should you start preparing, and how? What language should you use? All these questions and more are answered.Behind the ScenesLearn what happens behind the scenes during your interview, how decisions really get made, who you interview with, and what they ask you. Companies covered include Google, Amazon, Yahoo, Microsoft, Apple and Facebook.Special SituationsThis section explains the process for experience candidates, Program Managers, Dev Managers, Testers / SDETs, and more. Learn what your interviewers are looking for and how much code you need to know.Before the InterviewIn order to ace the interview, you first need to get an interview. This section describes what a software engineer's resume should look like and what you should be doing well before your interview.Behavioral PreparationAlthough most of a software engineering interview will be technical, behavioral questions matter too. This section covers how to prepare for behavioral questions and how to give strong, structured responses.Technical Questions (+ 5 Algorithm Approaches)This section covers how to prepare for technical questions (without wasting your time) and teaches actionable ways to solve the trickiest algorithm problems. It also teaches you what exactly "good coding" is when it comes to an interview.150 Programming Questions and AnswersThis section forms the bulk of the book. Each section opens with a discussion of the core knowledge and strategies to tackle this type of question, diving into exactly how you break down and solve it. Topics covered include• Arrays and Strings• Linked Lists• Stacks and Queues• Trees and Graphs• Bit Manipulation• Brain Teasers• Mathematics and Probability• Object-Oriented Design• Recursion and Dynamic Programming• Sorting and Searching• Scalability and Memory Limits• Testing• C and C++• Java• Databases• Threads and LocksFor the widest degree of readability, the solutions are almost entirely written with Java (with the exception of C / C++ questions). A link is provided with the book so that you can download, compile, and play with the solutions yourself.Changes from the Fourth Edition: The fifth edition includes over 200 pages of new content, bringing the book from 300 pages to over 500 pages. Major revisions were done to almost every solution, including a number of alternate solutions added. The introductory chapters were massively expanded, as were the opening of each of the chapters under Technical Questions. In addition, 24 new questions were added.Cracking the Coding Interview, Fifth Edition is the most expansive, detailed guide on how to ace your software development / programming interviews.

Give and Take: A Revolutionary Approach to Success


Adam M. Grant - 2013
    But today, success is increasingly dependent on how we interact with others. It turns out that at work, most people operate as either takers, matchers, or givers. Whereas takers strive to get as much as possible from others and matchers aim to trade evenly, givers are the rare breed of people who contribute to others without expecting anything in return. Using his own pioneering research as Wharton's youngest tenured professor, Grant shows that these styles have a surprising impact on success. Although some givers get exploited and burn out, the rest achieve extraordinary results across a wide range of industries. Combining cutting-edge evidence with captivating stories, this landmark book shows how one of America's best networkers developed his connections, why the creative genius behind one of the most popular shows in television history toiled for years in anonymity, how a basketball executive responsible for multiple draft busts transformed his franchise into a winner, and how we could have anticipated Enron's demise four years before the company collapsed - without ever looking at a single number. Praised by bestselling authors such as Dan Pink, Tony Hsieh, Dan Ariely, Susan Cain, Dan Gilbert, Gretchen Rubin, Bob Sutton, David Allen, Robert Cialdini, and Seth Godin-as well as senior leaders from Google, McKinsey, Merck, Estee Lauder, Nike, and NASA - Give and Take highlights what effective networking, collaboration, influence, negotiation, and leadership skills have in common. This landmark book opens up an approach to success that has the power to transform not just individuals and groups, but entire organizations and communities.

Range: Why Generalists Triumph in a Specialized World


David Epstein - 2019
     Plenty of experts argue that anyone who wants to develop a skill, play an instrument, or lead their field should start early, focus intensely, and rack up as many hours of deliberate practice as possible. If you dabble or delay, you'll never catch up to the people who got a head start. But a closer look at research on the world's top performers, from professional athletes to Nobel laureates, shows that early specialization is the exception, not the rule.David Epstein examined the world's most successful athletes, artists, musicians, inventors, forecasters and scientists. He discovered that in most fields--especially those that are complex and unpredictable--generalists, not specialists, are primed to excel. Generalists often find their path late, and they juggle many interests rather than focusing on one. They're also more creative, more agile, and able to make connections their more specialized peers can't see.Provocative, rigorous, and engrossing, Range makes a compelling case for actively cultivating inefficiency. Failing a test is the best way to learn. Frequent quitters end up with the most fulfilling careers. The most impactful inventors cross domains rather than deepening their knowledge in a single area. As experts silo themselves further while computers master more of the skills once reserved for highly focused humans, people who think broadly and embrace diverse experiences and perspectives will increasingly thrive.

Mind Performance Hacks: Tips & Tools for Overclocking Your Brain


Ron Hale-Evans - 2006
    This book can make you smarter.Mind Performance Hacks provides real-life tips and tools for overclocking your brain and becoming a better thinker. In the increasingly frenetic pace of today's information economy, managing your life requires hacking your brain. With this book, you'll cut through the clutter and tune up your brain intentionally, safely, and productively.Grounded in current research and theory, but offering practical solutions you can apply immediately, Mind Performance Hacks is filled with life hacks that teach you to:Use mnemonic tricks to remember numbers, names, dates, and other flotsam you need to recall. Put down your calculator and perform complex math in your head, with your fingers, or on the back of a napkin. Spark your creativity with innovative brainstorming methods. Use effective systems to capture new ideas before they get away. Communicate in creative new ways-even using artificial languages. Make better decisions by foreseeing problems and finding surprising solutions. Improve your mental fitness with cool tricks and games.While the hugely successful Mind Hacks showed you how your brain works, Mind Performance Hacks shows you how to make it work better.

Tiny Habits: The Small Changes That Change Everything


B.J. Fogg - 2019
    Start with two pushups a day, not a two-hour workout; or five deep breaths each morning rather than an hour of meditation. In Tiny Habits, B.J. Fogg brings his experience coaching more than 40,000 people to help you lose weight, de-stress, sleep better, or achieve any goal of your choice.  You just need Fogg’s behavior formula: make it easy, make it fit your life, and make it rewarding. Whenever you get in your car, take one yoga breath. Smile.  Whenever you get in bed, turn off your phone. Give yourself a high five. Change can be easy—once it starts, it grows.  Let B.J. Fogg show you exactly how.

Organizing from the Inside Out: The Foolproof System for Organizing Your Home, Your Office and Your Life


Julie Morgenstern - 1998
    Drawing on her years of experience as a professional organizer, Morgenstern outlines a simple organizing plan that starts with understanding your individual goals, natural habits, and psychological needs, so that you can work with your priorities and personality rather than against them. The basic steps-Analyze, Strategize, Attack-can be applied to any space or situation. In this thoroughly revised edition, Morgenstern has incorporated new information in response to feedback from her clients and audiences. These changes include- new chapters on living or working with someone who is disorganized- new chapters on organizing photographs, handbags, briefcases, and travel bags- an expanded program for organizing your kitchen- a new guide to getting started- a fully updated resource guide

Fascinate: Unlocking the Secret Triggers of Influence, Persuasion, and Captivation


Sally Hogshead - 2010
    It's more persuasive than marketing, advertising, or any other form of communication. And it all starts with seven universal triggers: lust, mystique, alarm, prestige, power, vice, and trust.Fascination plays a role in every type of decision making, from the brands you choose to the songs you remember, from the person you marry to the employees you hire. And by activating the right triggers, you can make anything become fascinating.To explore and explain fascination's irresistible influence, Sally Hogshead looks beyond marketing, delving into behavioral and social studies, historical precedents, neurobiology and evolutionary anthropology, as well as conducting in-depth interviews and a national study of a thousand consumers, to emerge with deeply rooted patterns for why, and how, we become captivated.Hogshead reveals why the Salem witch trials began with the same fixations as those in "Sex and the City." How Olympic athletes are subject to obsessions similar to those of fetishists. How a 1636 frenzy over Dutch tulip bulbs perfectly mirrors the 2006 real estate bubble. And why a billion-dollar "Just Say No" program actually increased drug use among teens, by activating the same "forbidden fruit" syndrome as a Victoria's Secret catalog.Whether you realize it or not, you're already using the seven triggers. The question is, are you using the right triggers, in the right way, to get your desired result? This book will show you.

The Mind Map Book: How to Use Radiant Thinking to Maximize Your Brain's Untapped Potential


Tony Buzan - 1993
    Now, in his most comprehensive book yet on the topic, Buzan reveals exciting new ways to improve one's memory, concentration, creativity, ability to learn, and more.

The Element: How Finding Your Passion Changes Everything


Ken Robinson - 2009
    When people arrive at the element, they feel most themselves and most inspired and achieve at their highest levels. "The Element" draws on the stories of a wide range of people, from ex-Beatle Paul McCartney to Matt Groening, creator of "The Simpsons"; from Meg Ryan to Gillian Lynne, who choreographed the Broadway productions of "Cats" and "The Phantom of the Opera"; and from writer Arianna Huffington to renowned physicist Richard Feynman and others, including business leaders and athletes. It explores the components of this new paradigm: The diversity of intelligence, the power of imagination and creativity, and the importance of commitment to our own capabilities. With a wry sense of humor, Ken Robinson looks at the conditions that enable us to find ourselves in the element and those that stifle that possibility. He shows that age and occupation are no barrier, and that once we have found our path we can help others to do so as well. "The Element" shows the vital need to enhance creativity and innovation by thinking differently about human resources and imagination. It is also an essential strategy for transforming education, business, and communities to meet the challenges of living and succeeding in the twenty-first century.

Bit Literacy: Productivity in the Age of Information and E-mail Overload


Mark Hurst - 2007
    More than a quick fix or another "how-to" guide, the book offers an entirely new way of attaining productivity that users at any level of expertise can put into action right away. This is "bit literacy," a method for working more productively in the digital age, with less stress. Mark Hurst - who has reached hundreds of thousands of readers through his Good Experience e-mail newsletter, Uncle Mark technology guides, thisisbroken.com, and other websites - has revealed the way to survive, and thrive, in the digital age: "Let the bits go.

Organizing for Your Brain Type: Finding Your Own Solution to Managing Time, Paper, and Stuff


Lanna Nakone - 2005
    Drawing on the science of brain function and her experience as a professional organizer, Lanna Nakone offers tailored and specific advice that will actually work to help you tame your desk, unclutter your closet, manage your time, and save your sanity.Take the Brain Style quiz to determine which of the four parts of the brain you rely on the most to process information, and which organizing style complements your brain function. If you rely on the*Posterior left section of your brain, you're a Maintaining Style. You develop and follow routines well and adhere to traditional organizing methods.*Frontal right section of your brain, you're an Innovating Style. Artistically creative, you have a unique stacking system that no one else understands.*Posterior right section of your brain, you're a Harmonizing Style. Valuing interconnectedness with your family or coworkers, you need to be organized enough to keep your environment peaceful.*Frontal left section of your brain, you're a Prioritizing Style. Adept at analyzing data, you prefer to delegate organizing.Chapters specific to each type offer practical tips and strategies for implementing an organizing system, maintaining your system, and coexisting with different brain styles.Insightful and understanding, Organizing for Your Brain Type turns the task of managing your life into an enjoyable experience.

Presentation Patterns: Techniques for Crafting Better Presentations


Neal Ford - 2011
    Patterns are like the lower-level steps found inside recipes; they are the techniques you must master to be considered a master chef or master presenter. You can use the patterns in this book to construct your own recipes for different contexts, such as business meetings, technical demonstrations, scientific expositions, and keynotes, just to name a few. Although there are no such things as antirecipes, this book shows you lots of antipatterns--things you should avoid doing in presentations. Modern presentation tools often encourage ineffective presentation techniques, but this book shows you how to avoid them. Each pattern is introduced with a memorable name, a definition, and a brief explanation of motivation. Readers learn where the pattern applies, the consequences of applying it, and how to apply it. The authors also identify critical antipatterns: cliches, fallacies, and design mistakes that cause presentations to disappoint. These problems are easy to avoid--once you know how. Presentation Patterns will help youPlan what you'll say, who you'll say it to, how long you'll talk, and where you'll present Perfectly calibrate your presentation to your audience Use the storyteller's "narrative arc" to full advantage Strengthen your credibility--and avoid mistakes that hurt it Hone your message before you ever touch presentation software Incorporate visuals that support your message instead of hindering it Create highly effective "infodecks" that work when you're not able to deliver a talk in person Construct slides that really communicate and avoid "Ant Fonts," "Floodmarks," "Alienating Artifacts," and other errors Master 13 powerful techniques for delivering your presentation with power, authority, and clarity Whether you use this book as a handy reference or read it from start to finish, it will be a revelation: an entirely new language for systematically planning, creating, and delivering more powerful presentations. You'll quickly find it indispensable--no matter what you're presenting, who your audiences are, or what message you're driving home.

Superforecasting: The Art and Science of Prediction


Philip E. Tetlock - 2015
    Unfortunately, people tend to be terrible forecasters. As Wharton professor Philip Tetlock showed in a landmark 2005 study, even experts’ predictions are only slightly better than chance. However, an important and underreported conclusion of that study was that some experts do have real foresight, and Tetlock has spent the past decade trying to figure out why. What makes some people so good? And can this talent be taught?   In Superforecasting, Tetlock and coauthor Dan Gardner offer a masterwork on prediction, drawing on decades of research and the results of a massive, government-funded forecasting tournament. The Good Judgment Project involves tens of thousands of ordinary people—including a Brooklyn filmmaker, a retired pipe installer, and a former ballroom dancer—who set out to forecast global events. Some of the volunteers have turned out to be astonishingly good. They’ve beaten other benchmarks, competitors, and prediction markets. They’ve even beaten the collective judgment of intelligence analysts with access to classified information. They are "superforecasters."   In this groundbreaking and accessible book, Tetlock and Gardner show us how we can learn from this elite group. Weaving together stories of forecasting successes (the raid on Osama bin Laden’s compound) and failures (the Bay of Pigs) and interviews with a range of high-level decision makers, from David Petraeus to Robert Rubin, they show that good forecasting doesn’t require powerful computers or arcane methods. It involves gathering evidence from a variety of sources, thinking probabilistically, working in teams, keeping score, and being willing to admit error and change course. Superforecasting offers the first demonstrably effective way to improve our ability to predict the future—whether in business, finance, politics, international affairs, or daily life—and is destined to become a modern classic.

Fish!: A Remarkable Way to Boost Morale and Improve Results


Stephen C. Lundin - 1996
    In Fish! the heroine, Mary Jane Ramirez, recently widowed and mother of two, is asked to engineer a turnaround of her company's troubled operations department, a group that authors Stephen Lundin, Harry Paul, and John Christensen describe as a "toxic energy dump." Most reasonable heads would cut their losses and move on. Why bother with this bunch of losers? But the authors don't make it so easy for Mary Jane. Instead, she's left to sort out this mess with the help of head fishmonger Lonnie. Based on a bestselling corporate education video, Fish! aims to help employees find their way to a fun and happy workplace. While some may find the story line and prescriptions--such as "Choose Your Attitude," "Make Their Day," and "Be Present"--downright corny, others will find a good dose of worthwhile motivational management techniques. If you loved Who Moved My Cheese? then you'll find much to like here. And don't worry about Mary Jane and kids. Fish! has a happy ending for everyone. --Harry C. Edwards

What the Most Successful People Do Before Breakfast: A Short Guide to Making Over Your Mornings--and Life


Laura Vanderkam - 2012
    We wake up in a haze—often after hitting snooze a few times. Then we rush around to get ready and out the door so we can officially start the day. Before we know it, hours have slipped by without us accomplishing anything beyond downing a cup of coffee, dashing off a few emails, and dishing with our coworkers around the water cooler. By the time the workday wraps up, we’re so exhausted and defeated that any motivation to accomplish something in the evening has vanished.But according to time management expert Laura Vanderkam, mornings hold the key to taking control of our schedules. If we use them wisely, we can build habits that will allow us to lead happier, more productive lives.Drawing on real-life anecdotes and scientific research that shows why the early hours of the day are so important, Vanderkam reveals how successful people use mornings to help them accomplish things that are often impossible to take care of later in the day. While many of us are still in bed, these folks are scoring daily victories to improve their health, careers, and personal lives without sacrificing their sanity. For instance, former PepsiCo chairman and CEO Steve Reinemund would rise at 5:00 a.m., run four miles, pray, and eat breakfast with his family before heading to work to run a Fortune 500 company.What the Most Successful People Do Before Breakfast is a fun, practical guide that will inspire you to rethink your morning routine and jump-start your life before the day has even begun.