400+ SNDK Corp Interview Questions and Answers
Q201. 2. Merge subsets with small twist
Merge subsets of strings with a twist
Merge subsets of strings into a single array
The twist is that each subset should be reversed before merging
Return the merged array of reversed subsets
Q202. What is Linear Regression? Details of Cost function and Derivation.
Linear Regression is a statistical method to model the relationship between a dependent variable and one or more independent variables.
Linear Regression is used to predict a continuous output based on one or more input features.
The cost function for Linear Regression is the Mean Squared Error (MSE), which measures the average squared difference between the predicted values and the actual values.
The goal of Linear Regression is to minimize the cost function by adjusting the pa...read more
Q203. Efficiently implement 3 stacks in a single array
Implement 3 stacks in a single array efficiently
Divide the array into 3 equal parts
Use pointers to keep track of top of each stack
Implement push and pop operations for each stack
Handle stack overflow and underflow cases
Q204. There’s a latency problem in South Africa. Diagnose it
Latency problem in South Africa is caused by inadequate infrastructure and lack of investment in technology.
Inadequate infrastructure and lack of investment in technology are the main causes of latency problem in South Africa.
Limited availability of high-speed internet and outdated network infrastructure contribute to the problem.
The distance between South Africa and major internet hubs also adds to the latency issue.
The use of satellite connections in rural areas further exa...read more
Q205. LRU cache implementation in most optimised way O(1)
Use a combination of hashmap and doubly linked list to achieve O(1) time complexity for LRU cache implementation.
Use a hashmap to store key-value pairs for quick access.
Use a doubly linked list to keep track of the most recently used items.
Whenever an item is accessed, move it to the front of the linked list.
When the cache is full, remove the least recently used item from the end of the linked list.
Q206. How you will marketing plan for the new product in the market
I will create a comprehensive marketing plan by conducting market research, identifying target audience, setting clear objectives, utilizing various digital channels, and measuring results.
Conduct market research to understand the competitive landscape and consumer preferences
Identify target audience and create buyer personas to tailor marketing messages
Set clear objectives such as increasing brand awareness, generating leads, or driving sales
Utilize various digital channels ...read more
Q207. How to make profit in the company
To make profit in a company, focus on increasing revenue and reducing expenses.
Increase sales by expanding customer base or introducing new products/services
Reduce costs by optimizing operations and negotiating better deals with suppliers
Implement cost-cutting measures such as reducing waste and improving efficiency
Invest in research and development to stay ahead of competitors
Consider mergers and acquisitions to increase market share and diversify revenue streams
Q208. 1. What is access control system and material movement 2. What is Cctv monitoring
Access control system restricts entry to authorized personnel. CCTV monitoring is surveillance through cameras.
Access control system limits access to specific areas or resources based on authorization.
Material movement refers to the control of goods and products entering or leaving a facility.
CCTV monitoring involves the use of cameras to monitor and record activities in a specific area.
Access control and CCTV monitoring are often used together to enhance security measures.
Ex...read more
Q209. experinces and how you perform
I have over 5 years of experience in software development, with a strong focus on web applications and database management.
Developed web applications using HTML, CSS, JavaScript, and various frameworks like Angular and React
Proficient in database management with SQL and NoSQL databases such as MySQL and MongoDB
Experience in version control systems like Git for collaborative development
Strong problem-solving skills and ability to work in a team environment
Continuously learning...read more
Q210. Write a function to multiply 2 N*N matrix Write test cases for your code
Q211. find union and intersection of two sorted array
Find union and intersection of two sorted arrays
To find the union, merge both arrays and remove duplicates
To find the intersection, iterate through both arrays and compare elements
Q212. Return triplets where sum is zero
Find unique triplets in an array that sum up to zero.
Sort the array first to easily identify duplicates.
Use two pointers technique to find the triplets.
Skip duplicates to avoid duplicate triplets.
Handle edge cases like all zeros or all positive/negative numbers.
Time complexity can be improved to O(n^2) using two pointers approach.
Q213. Find median of stream of integer numbers
Use two heaps to keep track of the numbers and find median efficiently.
Use a max heap to store the smaller half of the numbers and a min heap to store the larger half.
Keep the size of the two heaps balanced or with a difference of at most 1.
If the total number of elements is odd, the median is the top element of the larger heap. If even, it's the average of the tops of both heaps.
Q214. What other models would you consider to improve the current one.
I would consider incorporating machine learning algorithms to enhance the current model.
Explore using neural networks for more complex patterns
Implement decision trees for better interpretability
Utilize ensemble methods like random forests for improved accuracy
Q215. What thing you would change in the Google application that you feel error in it
I would change the Google application's search algorithm to prioritize more recent and relevant results.
Improve the search algorithm to prioritize recent and relevant information
Enhance the filtering options to refine search results
Implement a better system for detecting and penalizing fake or misleading websites
Integrate more personalized search features based on user preferences
Improve the accuracy of autocomplete suggestions
Q216. System Design Round1: Design a distributed log storage and analysis system
Design a distributed log storage and analysis system
Use a distributed file system like HDFS or Amazon S3 for storing logs
Implement a log aggregation system like Apache Kafka for collecting logs from various sources
Utilize a distributed processing framework like Apache Spark for analyzing logs in real-time
Consider using a NoSQL database like Cassandra for storing processed log data
Q217. Write a method to pretty print a binary tree. Don't make any assumptions, i.e. the tree could be highly unbalanced
Q218. 4. Number of islands with a twist
Count the number of islands in a grid, where an island is a group of connected 1s.
Use depth-first search (DFS) or breadth-first search (BFS) to traverse the grid
For each cell with a 1, mark it as visited and explore its neighboring cells
Count the number of times you start a new DFS or BFS traversal
Q219. Design an evacuation plan for San Francisco
Evacuation plan for San Francisco
Identify safe zones and evacuation routes
Establish communication channels for alerts and updates
Coordinate with local authorities and emergency services
Provide transportation options for those without means
Educate residents on evacuation procedures and preparedness
Consider vulnerable populations such as elderly and disabled
Prepare for potential traffic congestion and road closures
Q220. Find length of largest arithmetic sequence in binary tree.
Find length of largest arithmetic sequence in binary tree.
Traverse the tree and for each node, calculate the length of the longest arithmetic sequence that includes that node.
Use dynamic programming to store the length of the longest arithmetic sequence for each node.
The length of the longest arithmetic sequence for a node is the maximum of the lengths of the longest arithmetic sequences for its left and right children plus one if the node is part of an arithmetic sequence.
Q221. Difference between MySQL and SQLite.
MySQL is a full-featured relational database management system, while SQLite is a lightweight, serverless, self-contained database engine.
MySQL is designed for larger applications with client-server architecture, while SQLite is suitable for smaller projects or embedded systems.
MySQL supports multiple users and concurrent connections, while SQLite is limited to single-user access.
MySQL has more advanced features like stored procedures, triggers, and views, while SQLite is sim...read more
Q222. What is port and define the difference between
A port is a communication endpoint for sending and receiving data. The difference between TCP and UDP is their approach to data transmission.
A port is a logical construct that identifies a specific process or network service on a host machine.
TCP is a connection-oriented protocol that ensures reliable data transmission, while UDP is a connectionless protocol that does not guarantee delivery of data.
Ports are identified by numbers ranging from 0 to 65535, with well-known ports...read more
Q223. What area of law most interests you?
I am most interested in intellectual property law.
I find the intersection of law and technology fascinating.
I enjoy working with clients to protect their creative works and inventions.
I am particularly interested in trademark law and the branding of products and services.
I have experience in drafting patent applications and conducting patent searches.
I am also interested in the emerging field of artificial intelligence and its impact on intellectual property law.
Q224. Code an application that creates a new thread and exposes a "ping()" method. Whenever ping() is
Q225. Sort an array without inbuilt methods
Sorting an array of strings without using inbuilt methods
Use a sorting algorithm like bubble sort, selection sort, or insertion sort
Compare each element with the next one and swap if necessary
Repeat the process until the array is sorted
Q226. java8 is why so popular?
Java8 is popular due to its new features like lambda expressions, streams, and functional interfaces.
Lambda expressions provide concise code and simplify functional programming.
Streams allow for efficient processing of large data sets.
Functional interfaces enable the use of lambda expressions.
Java8 also introduced new APIs like Optional and Date/Time API.
Java8 is backward compatible with previous versions of Java.
Java8 is widely used in enterprise applications and big data pr...read more
Q227. Write a program to solve a challenging programming and algorithm problem.
Program to find the maximum subarray sum using Kadane's algorithm
Initialize max_so_far and max_ending_here to 0
Iterate through the array and update max_ending_here with the maximum of current element or current element + max_ending_here
Update max_so_far with the maximum of max_so_far and max_ending_here
Q228. Write a program to solve a second challenging programming and algorithm problem.
Implement a program to find the longest common subsequence of two strings.
Use dynamic programming to solve this problem efficiently.
Create a 2D array to store the lengths of longest common subsequences of substrings.
Trace back the array to reconstruct the longest common subsequence.
Q229. Guesstimate on market size for YouTube subscription model.
The market size for YouTube subscription model is estimated to be in the billions.
YouTube has over 2 billion monthly active users
Assuming 10% of users subscribe to premium, that's 200 million subscribers
At $12/month, that's $2.4 billion in monthly revenue
This does not include revenue from ads or other sources
Q230. How to create a html file
To create a HTML file, you can use a text editor to write the code and save it with a .html extension.
Open a text editor like Notepad, Sublime Text, or Visual Studio Code
Write your HTML code including tags like <html>, <head>, <title>, <body>
Save the file with a .html extension, for example index.html
Open the file in a web browser to view the HTML content
Q231. Which part attract the customers in Google?
Customers are attracted to Google's user-friendly interface, relevant search results, and innovative features.
User-friendly interface with easy navigation
Relevant search results based on search query
Innovative features like Google Maps, Google Translate, etc.
Constant updates and improvements to enhance user experience
Q232. How many people added in google
The number of people added in Google is constantly changing due to hiring, acquisitions, and other factors.
Google adds thousands of employees each year through hiring and acquisitions.
As of 2021, Google has over 140,000 employees worldwide.
The exact number of people added in Google can vary depending on the time frame and specific context of the question.
Q233. What is interfaces in java
Interfaces in Java are a way to achieve abstraction and multiple inheritance by defining a contract that classes must implement.
Interfaces in Java are similar to classes but can only contain method signatures and constants, not method implementations.
Classes can implement multiple interfaces, allowing them to inherit behavior from multiple sources.
Interfaces are used to achieve abstraction and decouple the implementation from the interface, promoting flexibility and reusabili...read more
Q234. What is the javascript
JavaScript is a programming language used for creating interactive web pages and web applications.
JavaScript is a high-level, interpreted language.
It is primarily used for client-side scripting.
JavaScript can be embedded directly into HTML pages.
It provides dynamic functionality and interactivity to websites.
Common uses include form validation, DOM manipulation, and AJAX requests.
Q235. What is selinum package or compenents?
Selenium is a package of tools and libraries for automating web browsers.
Selenium WebDriver: allows you to control a web browser from your preferred programming language
Selenium IDE: a record and playback tool for creating automated tests
Selenium Grid: allows you to run tests on different machines in parallel
Selenium RC (Remote Control): a deprecated tool for automating web browsers
Q236. What is digital marketing for you?
Digital marketing is the promotion of products or services using digital technologies.
It involves various channels such as social media, email, search engines, and websites.
The goal is to reach and engage with the target audience, increase brand awareness, and drive conversions.
Examples include creating and sharing content, running paid advertising campaigns, and analyzing data to optimize strategies.
Q237. To generate a fibonacci number sequence, and discuss its time and space complexity
Q238. What is your understanding of data analytics?
Data analytics involves analyzing raw data to draw conclusions and make informed decisions.
Data analytics involves collecting, processing, and analyzing data to identify trends and patterns.
It helps businesses make data-driven decisions and improve performance.
Techniques used in data analytics include data mining, machine learning, and statistical analysis.
Examples of data analytics in action include predicting customer behavior, optimizing marketing campaigns, and detecting ...read more
Q239. What do you know about online advertising?
Q240. Explain difference between coding and programming?
Coding is the process of writing instructions in a specific programming language, while programming involves the entire process of designing, writing, testing, and maintaining code.
Coding is the act of translating a problem into a language that a computer can understand.
Programming involves planning, designing, implementing, and testing a solution to a problem.
Coding is a subset of programming, focusing on the actual writing of code.
Programming encompasses a broader range of ...read more
Q241. How I will reallocate
I will reallocate resources based on project priorities and team needs.
Prioritize tasks based on project deadlines and importance
Communicate with team members to understand their workload and availability
Adjust resources as needed to ensure project success
Example: If a critical project is falling behind schedule, I may reallocate resources from less urgent projects to meet the deadline
Q242. Suggestion on bringing value ad to Google customer
To bring value to Google customers, we can focus on improving user experience, providing relevant and personalized content, and offering innovative features.
Optimize website and app performance to enhance user experience
Use data analytics to understand customer behavior and preferences
Offer personalized recommendations and targeted advertising
Introduce new features and services that meet customer needs and expectations
Provide excellent customer support and engage with custome...read more
Q243. What your expected ctc?
My expected CTC is negotiable based on the job role, company size, and location.
Consider the job role and responsibilities when determining expected CTC
Research industry standards and company size to gauge appropriate salary range
Factor in cost of living and location when discussing salary expectations
Q244. Whats the speed of my communication in english
The speed of your communication in English depends on various factors such as fluency, vocabulary, and clarity.
Speed of communication can be influenced by fluency in English language.
Having a wide vocabulary can help in communicating more quickly and effectively.
Clarity in speech and writing can also impact the speed of communication.
Practice and experience can improve the speed of communication in English.
Q245. Difference between soft assertion and hard assertion?
Soft assertion allows the test to continue after a failure, while hard assertion stops the test immediately.
Soft assertion is used when you want to continue executing the test even after a failure, while hard assertion stops the test execution immediately upon failure.
Soft assertions are typically used for non-critical verifications, while hard assertions are used for critical verifications.
Soft assertions are implemented using try-catch blocks or assertion libraries that sup...read more
Q246. what is linked list
A linked list is a linear data structure where elements are stored in nodes that have a reference to the next node in the sequence.
Consists of nodes connected by pointers
Does not have a fixed size like arrays
Allows for efficient insertion and deletion operations
Example: Singly linked list, Doubly linked list
Q247. Topological sort to get list of operations to be performed.
Topological sort is used to order a directed graph's nodes in a way that all edges go from earlier to later nodes.
Create a graph data structure to represent the dependencies between operations.
Use a depth-first search algorithm to perform the topological sort.
Start by selecting a node with no incoming edges as the first operation to be performed.
Remove this node and its outgoing edges from the graph, then repeat the process with the remaining nodes.
Repeat until all nodes have...read more
Q248. What is the nature of Google as a company?
Google is a multinational technology company known for its search engine, advertising platform, and various other products and services.
Google is known for its innovative products and services such as Google Search, Google Maps, Gmail, and YouTube.
The company's mission is to organize the world's information and make it universally accessible and useful.
Google's business model is primarily based on advertising revenue through its AdWords platform.
The company has a strong focus...read more
Q249. System Design Round2: Design a system similar to Zookeeper
Design a system similar to Zookeeper for managing distributed systems
Use a centralized service for maintaining configuration information, naming, and providing distributed synchronization
Implement a hierarchical namespace similar to file system paths for organizing data
Utilize a consensus algorithm like Paxos or Raft for ensuring consistency and fault tolerance
Q250. multi source bfs on the array
Multi-source BFS on an array of strings involves finding the shortest path from multiple starting points to a target point.
Implement BFS algorithm to traverse the array of strings starting from multiple sources simultaneously.
Maintain a queue of nodes to visit next, and keep track of visited nodes to avoid revisiting.
Update the distance of each node from the sources as you traverse the array.
Example: Given an array of strings representing a grid, find the shortest path from m...read more
Q251. Longest Palindromic Subsequence
The longest palindromic subsequence problem is to find the length of the longest subsequence in a given string that is a palindrome.
A subsequence is a sequence that can be derived from another sequence by deleting some or no elements without changing the order of the remaining elements.
Dynamic programming can be used to solve this problem efficiently.
For example, in the string 'character', the longest palindromic subsequence is 'carac', which has a length of 5.
Q252. What is the quality, response to prodect in
Product quality is the measure of how well a product meets customer expectations and requirements.
Product quality is essential for customer satisfaction and loyalty
Response to product quality issues should be prompt and effective
Quality control measures should be implemented throughout the product development process
Examples of quality metrics include defect rate, customer complaints, and return rate
Q253. Write a program to mirror the pixel in a screen matrix of 24 bit pixels
Program to mirror the pixel in a screen matrix of 24 bit pixels
Create a 2D array to represent the screen matrix of pixels
Iterate through each row and swap the pixels from left to right
Ensure to handle the 24 bit pixels properly for mirroring
Example: [[255, 0, 0], [0, 255, 0], [0, 0, 255]] -> [[0, 0, 255], [0, 255, 0], [255, 0, 0]]
Q254. Full from of pdf ?
PDF stands for Portable Document Format.
PDF is a file format used to present and exchange documents reliably, independent of software, hardware, or operating system.
It was developed by Adobe Systems in 1993.
PDF files can contain text, images, hyperlinks, interactive buttons, forms, and more.
PDFs can be viewed and printed on any device with a PDF reader, such as Adobe Acrobat Reader or Preview on Mac.
PDFs can also be edited using software such as Adobe Acrobat Pro or online to...read more
Q255. What is seo full form?
SEO full form stands for Search Engine Optimization.
SEO is the process of optimizing a website to improve its visibility on search engines like Google.
It involves various strategies such as keyword research, content optimization, and link building.
Example: A website that uses SEO techniques may appear higher in search results for relevant keywords.
Q256. Any improvements to be made to the product?
Yes, we can improve the product by adding more features and enhancing its user interface.
Add more customization options for users
Improve the search functionality
Enhance the product's mobile compatibility
Integrate with popular third-party tools
Simplify the user interface for better user experience
Q257. How would you handle an irate customer?
I would listen to their concerns, empathize with them, and offer a solution to their problem.
Remain calm and professional
Listen actively to their concerns
Empathize with their situation
Apologize for any inconvenience caused
Offer a solution to their problem
Follow up to ensure their satisfaction
Q258. How we make google richest company in world
Google can become the richest company in the world by focusing on innovation, expanding into new markets, and optimizing revenue streams.
Invest heavily in research and development to create new products and services that meet consumer needs.
Expand into emerging markets with high growth potential, such as India and Southeast Asia.
Optimize revenue streams by leveraging advertising, cloud services, and hardware sales.
Acquire strategic companies to enhance Google's offerings and ...read more
Q259. coding program and complexity
Coding programs can vary in complexity depending on the requirements and functionalities needed.
Complexity can be measured using Big O notation, which describes the worst-case scenario for time and space complexity.
Factors affecting complexity include data structures used, algorithms implemented, and the size of input data.
Examples of complex programs include machine learning algorithms, large-scale distributed systems, and real-time processing applications.
Q260. Rotate the matrix 90 degrees clockwise
Rotate an n x n 2D matrix by 90 degrees clockwise in-place without using extra space.
Iterate through each layer of the matrix, swapping elements in groups of 4
Use variables to store temporary values during swapping
Reverse the rows of the matrix to rotate it 90 degrees clockwise
Q261. What is the different between firewall and gateway
Firewall is a security system that monitors and controls incoming and outgoing network traffic, while a gateway is a node that connects two different networks.
Firewall is a security system that filters network traffic based on predetermined security rules.
Gateway is a node that acts as an entry and exit point for data between two networks.
Firewall can be a software program or a hardware device, while gateway is typically a hardware device.
Examples of firewalls include Cisco A...read more
Q262. do you know about us gaap to ifrs reconciliation
US GAAP to IFRS reconciliation involves aligning financial statements prepared under US GAAP with those prepared under IFRS.
US GAAP and IFRS have different accounting standards and principles
Reconciliation involves adjusting financial statements to ensure they comply with IFRS standards
Differences in revenue recognition, lease accounting, and financial instruments are common areas requiring reconciliation
Q263. Whatbis dirrerence between 4-20 & 0-20 mA signal
4-20 mA signal has a minimum value of 4 mA and a maximum value of 20 mA, while 0-20 mA signal ranges from 0 mA to 20 mA.
4-20 mA signal has a minimum value of 4 mA representing the lower limit of the signal range.
0-20 mA signal starts from 0 mA, allowing for a wider range of values compared to 4-20 mA signal.
Both signals are commonly used in industrial automation for transmitting analog signals to control systems.
4-20 mA signal is often used for process control applications, w...read more
Q264. How do you determine which issue to be picked
Issues are prioritized based on their impact on business operations and urgency of resolution.
Assess the severity of the issue and its impact on business operations
Determine the urgency of the issue and its potential to escalate
Consider the resources available to address the issue
Prioritize issues that have the highest impact on business operations and require immediate attention
Create a system for tracking and managing issues to ensure timely resolution
Q265. GCP migration task in legacy and Cloud
GCP migration involves transferring legacy systems to the cloud.
Identify the legacy systems that need to be migrated
Assess the compatibility of the legacy systems with GCP
Plan the migration strategy and timeline
Execute the migration process, ensuring data integrity and minimal downtime
Test and validate the migrated systems in the GCP environment
Optimize and fine-tune the migrated systems for optimal performance
Q266. Given a Tree with 0's and 1's find number of distinct islands. Joined 1's together form an island.
Count the number of distinct islands in a tree with 0's and 1's where joined 1's form an island.
Traverse the tree and identify connected components of 1's to form islands.
Use a set to store the unique shapes of islands to avoid counting duplicates.
Consider different shapes of islands like horizontal, vertical, diagonal, etc.
Example: [['1', '0', '1'], ['1', '1', '0']] has 2 distinct islands.
Q267. What is the symbol of magnesium
The symbol of magnesium is Mg.
The symbol Mg is derived from the Latin word 'magnesium'.
Magnesium is a chemical element with atomic number 12.
It is a shiny gray solid and is commonly found in minerals such as dolomite and magnesite.
Q268. What's is the symbol of potassium
The symbol of potassium is K.
The symbol K comes from the Latin word 'kalium', which is where the element gets its name.
Potassium is a chemical element with atomic number 19.
Potassium is a soft, silvery-white metal that reacts violently with water.
Q269. Have you used 'a specific GCP' solution?
Yes, I have used Google Cloud Platform (GCP) solutions in previous projects.
I have experience using Google Cloud Storage for data storage and retrieval.
I have utilized Google Cloud Compute Engine for virtual machine management.
I have worked with Google Cloud Pub/Sub for real-time messaging and event-driven systems.
Q270. Given a string, find the decoded string
Decode a given string to find the decoded string
Use a stack to keep track of characters and their counts
Iterate through the string and push characters onto the stack until a number is encountered
When a number is encountered, update the count of the previous character on the stack
Q271. Which industries have you managed the ads?
Q272. One c++ program, to find output of the program?
Answer to a C++ program to find output
Understand the logic of the program
Check for syntax errors
Compile and run the program
Analyze the output
Q273. What is facebook marketing?
Facebook marketing is the use of Facebook's platform to promote products or services, engage with customers, and drive traffic to websites.
Creating and managing Facebook ads to reach target audiences
Posting engaging content on a Facebook business page to increase brand awareness
Utilizing Facebook analytics to track performance and make data-driven decisions
Engaging with followers through comments, messages, and live videos
Collaborating with influencers or running contests to ...read more
Q274. How familiar are you with Java?
I am very familiar with Java and have experience working on various projects using the language.
Proficient in Java programming language
Experience working on Java projects
Knowledge of Java frameworks like Spring and Hibernate
Q275. Subarray finding maximum
Find the maximum sum of a subarray within an array of strings.
Iterate through the array and keep track of the maximum sum of subarrays.
Use Kadane's algorithm to efficiently find the maximum sum subarray.
Example: ['1', '2', '-3', '4', '5', '-6'] -> Maximum sum subarray is ['4', '5'].
Q276. What is a google review?
A Google review is a user-generated rating and feedback about a business or place on Google Maps.
Google reviews are written by users who have visited or interacted with a business or place.
They provide a rating (usually on a scale of 1 to 5 stars) and a written review.
Google reviews help other users make informed decisions about where to go or what to expect.
Reviews can mention specific experiences, services, or products offered by the business.
Businesses can respond to revie...read more
Q277. What is affilate mareting
Affiliate marketing is a performance-based marketing strategy where a business rewards affiliates for driving traffic or sales to their website.
Affiliates promote products or services through unique tracking links
Affiliates earn a commission for each sale or lead generated through their referral
Affiliate marketing is a cost-effective way for businesses to reach a larger audience
Examples: Amazon Associates, ClickBank, Commission Junction
Q278. Trees - minimum number of islands
Count the minimum number of islands in a given grid of trees.
Iterate through the grid and for each tree, perform a depth-first search to mark all connected trees as visited.
Increment the island count for each new island found.
Return the total number of islands at the end.
Q279. How you can optimise reversal process in a tree
To optimize reversal process in a tree, use iterative post-order traversal with a stack.
Implement iterative post-order traversal using a stack to efficiently reverse the tree.
Start by pushing the root node onto the stack.
While the stack is not empty, pop a node, push its children onto the stack in reverse order, and then push the node itself.
Repeat this process until all nodes have been visited and reversed.
This method avoids recursion and can be more efficient for large tree...read more
Q280. How You Will Manage The Work Load Pressure
I manage work load pressure by prioritizing tasks, setting realistic deadlines, and taking breaks to avoid burnout.
Prioritize tasks based on deadlines and importance
Break down tasks into smaller, manageable chunks
Set realistic deadlines and communicate with team members if needed
Take short breaks to avoid burnout and maintain productivity
Q281. what you know about stock trading?
Stock trading involves buying and selling shares of publicly traded companies on the stock market.
Stock trading is the buying and selling of shares of publicly traded companies on the stock market.
Investors aim to make a profit by buying low and selling high.
Stock prices are influenced by various factors such as company performance, economic conditions, and market trends.
Different types of stock trading include day trading, swing trading, and long-term investing.
Examples of s...read more
Q282. What is the symbol of aluminium
The symbol of aluminium is Al.
The symbol Al is derived from the Latin word 'alumen'.
Aluminium is a chemical element with atomic number 13.
Aluminium is a silvery-white, soft, nonmagnetic metal.
Aluminium is the most abundant metal in the Earth's crust.
Q283. binary search on array
Binary search is a fast search algorithm that finds the position of a target value within a sorted array.
Ensure the array is sorted before performing binary search.
Compare the target value with the middle element of the array.
If the target value is less than the middle element, search the left half of the array. If it is greater, search the right half.
Repeat the process until the target value is found or the subarray is empty.
Q284. What is registers where it is used
Registers are small, fast storage locations in a computer's processor that hold data temporarily.
Registers are used to store data that is frequently accessed by the processor.
They are faster than accessing data from memory.
Registers are used to hold data such as memory addresses, counters, and flags.
They are also used to hold data during arithmetic and logical operations.
Examples of registers include the program counter, stack pointer, and accumulator.
Q285. what is black box testing?
Black box testing is a software testing technique that focuses on the functionality of the software without knowing its internal structure.
Tests are performed based on the software requirements and specifications
Testers do not have access to the source code or internal structure of the software
Tests are designed to simulate real-world scenarios and user behavior
The goal is to identify defects or issues in the software's functionality
Examples include functional testing, regres...read more
Q286. what is the main source of Google
The main source of Google is its search engine.
Google's search engine is the primary source of its revenue.
Other sources include advertising, cloud services, and hardware products.
Google's search engine processes over 3.5 billion searches per day.
Google's advertising revenue in 2020 was over $147 billion.
Q287. find minimum no. of increment operations to make array unique
To make an array of strings unique, count the number of duplicate elements and increment them accordingly.
Iterate through the array and keep track of the frequency of each element.
For each duplicate element, increment it to make the array unique.
Return the total number of increment operations needed.
Q288. What you understand by technical word??
Technical word refers to a term or phrase that is specific to a particular field or industry.
Technical words are often used in specialized fields such as engineering, computer science, and medicine.
They may be difficult for people outside of the field to understand.
Examples of technical words include 'algorithm', 'cybersecurity', and 'MRI'.
Q289. HASHMAP ,find the all buddy
A HashMap is a data structure that stores key-value pairs. To find all buddies in a HashMap, we need to iterate through the entries and compare values.
Iterate through the entries of the HashMap
Compare values to find buddies
Store buddies in an array of strings
Q290. Implement jquery $ and its chaining mechanism in vanilla javascript
Implementing jquery $ and chaining in vanilla JS
Create a function that takes a selector as input
Use document.querySelectorAll() to select elements
Return an object with methods for DOM manipulation
Use 'this' keyword to enable chaining
Return 'this' at the end of each method
Q291. How would you improve Google Maps?
Improve Google Maps by enhancing real-time traffic updates and integrating more public transportation options.
Enhance real-time traffic updates to provide more accurate and timely information to users
Integrate more public transportation options to help users plan their routes more efficiently
Improve the accuracy of location data to ensure users are directed to the correct destination
Implement a feature that allows users to report road closures or accidents in real-time for be...read more
Q292. What are your views on triple talak?
Triple talak is a controversial practice in Islamic law that allows a husband to divorce his wife by saying 'talaq' three times.
Triple talak is a form of instant divorce that has been a subject of debate and controversy.
Many argue that it is unfair to women as it gives unilateral power to the husband and leaves the wife vulnerable.
Some believe that triple talak is not in line with the principles of gender equality and justice.
Various countries have taken different approaches ...read more
Q293. Trees based on meduim problem
Trees are data structures used to store hierarchical data. They are commonly used in algorithms and problem-solving.
Trees have a root node and branches that connect to other nodes.
Common tree traversal methods include in-order, pre-order, and post-order.
Examples of tree-based problems include finding the lowest common ancestor, balancing a binary search tree, and implementing a trie data structure.
Q294. How do download 3d photos in free prices
You can download 3D photos for free from websites that offer free 3D models and images.
Search for websites that offer free 3D models and images
Look for the option to download the 3D photos for free
Ensure that you have the necessary software to view and edit 3D photos
Q295. Design the algorithm with less time complexity
Design an algorithm with less time complexity.
Use efficient data structures like hash tables, binary trees, etc.
Avoid nested loops and recursion if possible.
Try to optimize the code by reducing redundant operations.
Use dynamic programming to solve complex problems.
Consider parallel processing for large datasets.
Use built-in functions and libraries instead of writing custom code.
Profile the code to identify bottlenecks and optimize accordingly.
Q296. Find occurrences of a number in sorted array (allow duplicates)
Q297. Explain about the Cloud Architecture of your environment
Our cloud architecture is designed for scalability, reliability, and security.
We utilize a combination of public, private, and hybrid cloud solutions to meet our needs.
Our architecture includes redundant systems and data backups to ensure high availability.
We implement security measures such as encryption, access controls, and monitoring to protect our data.
We use containerization and microservices for flexibility and efficiency in our applications.
Our architecture is designe...read more
Q298. How a packet is processed in Multilayer switch
Q299. develop Snake game
Develop a classic Snake game using JavaScript and HTML5 canvas.
Use HTML5 canvas to draw the game board and snake.
Implement logic for snake movement and collision detection.
Add functionality for snake to grow when eating food.
Track score and display it on the screen.
Handle game over condition when snake collides with walls or itself.
Q300. What is Kernal and what propose it use
Kernel is the core of an operating system that manages system resources and provides services to other software.
Kernel is responsible for managing memory, input/output requests, and system calls.
It provides a layer of abstraction between hardware and software.
Examples of kernels include Linux, Windows, and macOS.
Kernel can be monolithic, microkernel, or hybrid in design.
More about working at Google
Top HR Questions asked in SNDK Corp
Interview Process at SNDK Corp
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month