Rails Interview R - Flo Report
Rails Interview R - Flo Report
COMPANY CANDIDATE
Copyright © 2023-24 FloCareer, Inc. All rights reserved. Downloaded by: [email protected] Page 1 of 7
• (Rspec) : Having experience of TDD.
TDD
• : Asked questions related to auto-
AWS
scaling group, cloudformation template
and cloudfront. He was able to answer all
the questions asked.
• : Having Good exposure to Postgres
SQL
and Mysql databases.
• Able to solve one
Coding capabilities:
coding problem partially.
RATING * Mandatory
INTERVIEW Q&A
Descriptive Question
(10 of 10 Answered)
Rating Average
Rating Average
Q3 Why might you use Hash#fetch over Hash#[] when querying values in a hash?
No description available
Hash#fetch over Hash#[] when querying values in a hash Not
answered by the candidate..
Rating Poor
Rating Average
Rating Average
Rating Average
Q1 Coding Question: Write the code to find Most Booked Hotel Room
Given a hotel which has 10 floors [0-9] and each floor has 26 rooms [A-Z]. You are given a
sequence of rooms, where + suggests room is booked, - room is freed. You have to find
which room is booked maximum number of times.
You may assume that the list describes a correct sequence of bookings in chronological
order; that is, only free rooms can be booked and only booked rooms can be freed. All
rooms are initially free. Note that this does not mean that all rooms have to be free at the
end. In case 2 rooms have been booked the same number of times, return the
lexicographically smaller room.
You may assume:
N (length of input) is an integer within the range [1, 600] each element of array A is a
string consisting of three characters: "+" or "-"; a digit "0"-"9"; and uppercase English letter
"A" - "Z" the sequence is correct. That is every booked room was previously free and every
freed room was previously booked.
Example: Input: ["+1A", "+3E", "-1A", "+4F", "+1A", "-3E"] Output: "1A" Explanation: 1A as it has
been booked 2 times.
A 1 test = {a: 4, b: 5, c: 6}
2
3 tesh.each do |k,v|
4 puts k
5 puts v
6 end
7
8 test.fetch()
9
10 rails g migrationadd_new_index_on_contact
11
12 AddNew
13
14 def change
15
16 end
17
18 rake db:migrate db:rollback
19
20 a = []
21
22 a << "sdds"
23 a = nil
24
25 @str
26 $sd
27 @@
28 s = 4
TDD-- used to write unit test cases and functional test cases..
Rating Average
Rating Average
REPORT GENERATED ON
END OF REPORT
30 JAN 2023 12:04 PM