Giter Site home page Giter Site logo

21daysofcode-2024's Introduction

Questions for Day 17 – (07/07/2024)

DSA:

Question 1: Given a binary search tree (BST) and two nodes, find their lowest common ancestor (LCA).

Inputs:
  • The root node of the BST. Two nodes for which the LCA is to be found.
Output:
  • The value of the LCA node.
Example:

BST:

       20
      /  \
    10    30
   /  \  /  \
  5   15 25  35

Nodes: 5, 30

Output: 20


Question 2: Given a binary search tree (BST) and a value, insert the value into the BST while maintaining its properties.

Inputs:
  • The root node of the BST. The value to be inserted.
Output:
  • The root node of the updated BST.
Example:
 BST:
       4
      / \
     2   7
    / \
   1   3
Insert: 5
Updated BST:
       4
      / \
     2   7
    / \ /
   1  3 5

WEB-DEV:

Today, we aim to explore the necessity and function of databases. Given that many of us will be setting up MySQL, we'll focus on foundational questions.

  1. Create a database named ACM21DOC.
  2. Create a table named STUDENTS as followed: [ Name VARCHAR(15) NOT NULL, Bdate DATE, Sex CHAR]
  3. Input some dummy entry and use SELECT * FROM STUDENTS to display all the entry. Submit all the queries performed in a .txt file

21daysofcode-2024's People

Contributors

tanayprabhakar avatar catoxiretreater avatar amulyajain2004 avatar aahanaaa13 avatar amit00199 avatar hritvikgarg avatar aanidhay avatar aditisharma1524 avatar anshgulati avatar deeptanshnagar avatar aryansaini10 avatar jahnavisaxena avatar idream2 avatar vanshika-verma14 avatar jatinavi avatar reetvarshney avatar suhanibaderia avatar asmigarg avatar vijaychauhan00214 avatar adx04 avatar himanshupohani avatar himaswarupa avatar amritrajgarg avatar deepanshu7573bansal avatar rajputmanav540 avatar vilsium avatar ashnaaa06 avatar manya1604 avatar peakscripter avatar ayush03ch avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.