Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
3 views

Java Script

Uploaded by

Tomar Sahil
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Java Script

Uploaded by

Tomar Sahil
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 6

NInja

reverse datastruture
linklist
stack and queue diff
binary search dnc algo
one more dnc ask
oops concepts pillar of oops with example basic program

introduction:-

hello sir/madam thanks for this oppurtinty to introduce my self


my name is sahil singh tomar
i have completed my bachlore of engineering from apollo institute of technology in
computer engineering.
and also i have completed my diploma from vpmp polytechnic
the project i have done is youtube colone where it is only front end project with i
made with the help of html css and js
on the other hand my team built home automation system by using Arduino
as per my personal project i made e-commerce website
my strength is that i am dedicated harworker team player patience as well as quick
learner even though i didn't have any industrial experience or lack some skills i
ensure you that i'll work on it to be a better developer so i can grow with tcs
my weekness is time management but i ensure i'll work on it
as per my hobbies is to play sports and video games.
my short term goal is skills development and to stand out in the industry for
better future.
that,s all thank you.

why our organistion choose you?

As a fresher, I bring a unique combination of enthusiasm and a genuine eagerness to


learn and contribute to your organization
as i am enthusiastic and passionate about my work and i am higly motivated to
choose company like tcs
on the other hand i am also loking for a company where i can grow my skiils over
the long terms and tcs suits this role perfectly.

why tcs?

tCS is a global leader in IT services, consulting, and business solutions. The


company’s reputation for excellence and innovation is well-known. Being part of
such a renowned organization would be a significant milestone in my career.
TCS places a strong emphasis on continuous learning and professional development
through its various training programs and initiatives. As a fresher, this
commitment to employee growth is very important to me, as it will provide me with
the opportunities and resources to expand my skills and advance my career.

where do you see your self in year?

I envision myself as a valued member of the TCS team, having made significant
contributions to the company's success while continuing to grow both personally and
professionally.In the first few years, I aim to immerse myself in various projects
and opportunities to deepen my understanding of TCS's services, technologies, and
industry trendsAs I gain experience and expertise, I aspire to take on leadership
roles where I can lead teams, mentor junior colleagues, and drive project success.
I want to contribute to fostering a collaborative and high-performing team
environment within TCS.

home automation using Arduino

as my role is for the hardware and the software is taken from the mit youtube.
as i have connected jumper wire Arduino relay module blutooth module capicitors led
etc.

questions data structures

Arrays: An array is a collection of elements stored in contiguous memory locations,


indexed by integers. It allows efficient random access to elements but has a fixed
size and may require shifting elements during insertion or deletion.

Linked Lists: A linked list is a linear collection of elements, where each element
(node) contains a data value and a reference (or link) to the next node in the
sequence. Linked lists allow efficient insertion and deletion of elements but do
not support random access.

Stacks: A stack is a last-in, first-out (LIFO) data structure that allows elements
to be added or removed only from one end, called the top. It is commonly used for
managing function calls, expression evaluation, and undo operations.

Queues: A queue is a first-in, first-out (FIFO) data structure that allows elements
to be added at the rear (enqueue) and removed from the front (dequeue). It is used
for managing tasks in a sequential manner, such as in scheduling algorithms and
breadth-first search.

Trees: A tree is a hierarchical data structure consisting of nodes connected by


edges. It is widely used for representing hierarchical relationships, such as in
file systems, organization charts, and binary search trees.

Graphs: A graph is a collection of nodes (vertices) and edges that connect pairs of
nodes. It is used to represent relationships between objects, such as in social
networks, network routing, and dependency analysis.

what is link list?

A linked list is a linear data structure consisting of a sequence of elements,


called nodes, where each node contains a data value and a reference (or link) to
the next node in the sequence. Unlike arrays, which store elements in contiguous
memory locations, linked lists use dynamic memory allocation, allowing elements to
be stored non-contiguously in memory.

There are different types of linked lists, including:

Singly Linked List:

In a singly linked list, each node contains a data value and a single link pointing
to the next node in the sequence. The last node typically points to NULL to
indicate the end of the list.
Doubly Linked List:

In a doubly linked list, each node contains both a data value and two links: one
pointing to the next node and another pointing to the previous node. This allows
for traversal in both forward and backward directions.
Circular Linked List:

In a circular linked list, the last node points back to the first node, forming a
circular structure. This can simplify certain operations, such as traversal, since
there is no distinct end to the list.

difference between

Stack (LIFO - Last-In-First-Out) Queue (FIFO -


First-In-First-Out)
Addition Operation Push Enqueue
Removal Operation Pop Dequeue
Access Operation Peek/Top Front/Peek
Primary Access Point Top (one end) Front (for
removal), Rear (for addition)
Use Cases Function call management, Undo mechanisms, Syntax parsing Order
processing systems, Print queue management, Breadth-First Search (BFS)
Example Addition Push(A), Push(B), Push(C) -> Stack: C, B, A Enqueue(A),
Enqueue(B), Enqueue(C) -> Queue: A, B, C
Example Removal Pop() -> Stack: B, A (C removed) Dequeue() ->
Queue: B, C (A removed)

what is dnc?

DNC" typically stands for "Divide and Conquer," which is a fundamental algorithmic
paradigm used in computer science for solving problems.

In the Divide and Conquer approach, a problem is divided into smaller subproblems
that are similar to the original problem but smaller in size. These subproblems are
then solved recursively, and their solutions are combined to solve the original
problem.

The Divide and Conquer strategy generally consists of three steps:

Divide: The problem is divided into smaller subproblems that are similar to the
original problem but smaller in size. This step often involves partitioning the
input data or breaking it down into smaller pieces.

Conquer: The subproblems are recursively solved. If the subproblems are small
enough, their solutions are computed directly. Otherwise, the Divide and Conquer
approach is applied recursively to solve them.

Combine: The solutions to the subproblems are combined to solve the original
problem. This step may involve merging the solutions, computing a final result from
the solutions of the subproblems, or performing other operations to derive the
solution to the original problem.

what is binary search?

Binary search is a widely used searching algorithm that efficiently finds the
position of a target value within a sorted array or list. It works by repeatedly
dividing the search interval in half until the target value is found or the
interval is empty.

Here's how binary search works:

Initialization:
Binary search starts with the entire array as the search interval.
It sets two pointers, low and high, to the first and last indices of the array,
respectively.

Search:
While the low pointer is less than or equal to the high pointer:
Calculate the middle index of the current search interval as (low + high) // 2.
Compare the target value with the middle element of the array.
If the target value matches the middle element, the search is successful, and the
index of the target is returned.
If the target value is less than the middle element, update the high pointer to be
one less than the middle index, restricting the search to the lower half of the
array.
If the target value is greater than the middle element, update the low pointer to
be one more than the middle index, restricting the search to the upper half of the
array.
If the target value is not found after the entire array is searched, return a
special value (such as -1) to indicate that the target is not present in the array.

Termination:
The search terminates when the low pointer exceeds the high pointer, indicating
that the search interval is empty and the target value is not present in the array.

oops concept and four pillar of oops concept

Object-Oriented Programming (OOP) is a programming paradigm that revolves around


the concept of "objects." These objects are instances of classes, which serve as
blueprints for creating objects with predefined attributes (data) and behaviors
(methods).

The core principles of Object-Oriented Programming include:

Encapsulation: Encapsulation refers to the bundling of data (attributes or


properties) and methods (functions or procedures) that operate on the data into a
single unit called a class. It allows for better control over access to data and
prevents unintended modification.

Abstraction: Abstraction is the process of hiding the complex implementation


details of a class and exposing only the essential features to the outside world.
It allows users to interact with objects using simplified interfaces without
needing to know the internal workings.

Inheritance: Inheritance enables a class (subclass or derived class) to inherit


attributes and methods from another class (superclass or base class). This promotes
code reuse, as common features can be defined in a superclass and shared by
multiple subclasses.

Polymorphism: Polymorphism allows objects of different classes to be treated as


objects of a common superclass. It enables methods to be called on objects without
knowing their specific types, promoting flexibility and extensibility in code.

These four principles form the foundation of Object-Oriented Programming and are
often summarized by the acronym "PIEA" (Polymorphism, Inheritance, Encapsulation,
and Abstraction).

Object-Oriented Programming provides several benefits, including:

Modularity: Breaking down complex systems into smaller, manageable units (objects).

Reusability: Reusing classes and objects in different parts of a program or in


different programs.

Flexibility: Allowing for easy modification and extension of code through


inheritance and polymorphism.

Maintainability: Facilitating easier maintenance and debugging of code due to its


modular and organized structure.

Object-Oriented Programming languages, such as Java, C++, Python, and C#, provide
built-in support for creating and working with objects, classes, and the principles
of OOP.

Bubble Sort: Bubble sort repeatedly steps through the list, compares adjacent
elements, and swaps them if they are in the wrong order. The process repeats until
the list is sorted.

Selection Sort: Selection sort divides the list into a sorted and an unsorted
portion. It repeatedly selects the smallest (or largest) element from the unsorted
portion and swaps it with the first element of the unsorted portion.

Insertion Sort: Insertion sort builds the final sorted array one element at a time.
It iterates through the array, removing one element from the input data, finds its
correct position in the sorted portion of the array, and inserts it there.

Merge Sort: Merge sort is a divide-and-conquer algorithm that divides the array
into two halves, recursively sorts each half, and then merges the sorted halves. It
combines sorted arrays into a single sorted array.

Quick Sort: Quick sort is another divide-and-conquer algorithm that selects a pivot
element, partitions the array into two subarrays (elements less than the pivot and
elements greater than the pivot), recursively sorts each subarray, and then
combines the sorted subarrays.

Heap Sort: Heap sort builds a max-heap (or min-heap) from the input array and
repeatedly extracts the maximum (or minimum) element from the heap and rebuilds the
heap until the array is sorted.

You might also like