n********y 发帖数: 66 | 1 file1 = sec1 -> sec7->sec9 -> sec11 -> null
file2 = sec10 -> sec12-> null
file1 should start from sec2 ?
For example
Sec1.block1: 2
block2: 10
block3: null
These data are lost. So we scan from Sec2, then follow pointer to 2,7,9,11
and record these positions. Write all the information as file1 to Sec1. Then
from next sector in 2-17 not used, do same thing.
when you're done, you get a your Sec1 back. |
|
d********w 发帖数: 363 | 2 http://geeksforgeeks.org/forum/topic/google-interview-question-
software-engineerdeveloper-about-algorithms-15
There is a file system on the disc. the disc has many sectors. Always
the first sector has the information about all the files.
A file data is divided into sectors. Each sector can have data from a
single file.
Each sector has 2 parts, data and the pointer to the next sector of the
file. Every last sector in the file has next pointer as null.
say a disk has 18 sectors numbered 1 to 18.
... 阅读全帖 |
|
|
b*****a 发帖数: 14583 | 4 save your saliva, you are talking to an SEC fan
i am surprised he didn't say SEC1>SEC2>SEC3>...>SEC12>>b10=b12... |
|
n******u 发帖数: 332 | 5 当他们不需要的时候,1-6就是1-6。
需要的时候,WAC1-6不同于SEC1-6。 |
|
l*****y 发帖数: 4887 | 6 整体SEC还是在B1G之上
要像篮球一样搞个SEC-B1G对抗赛
B1G被爆没悬念
撑门面的现在就他盖和他斯
他密都还差点火候
前5,大10有2个,SEC1个
前10,大10有2个,SEC3个
前15,大10有2个,SEC5个
整个前25里面,大10就多一个西北 |
|
|
c****s 发帖数: 2487 | 8 There are two figures in one article and they both
are numbered as 1 and 2 respectively. However, the two
references turn out to be 2 and 3, which are actually
the numbers of the sections where the figures are
included. WHYYYYYYYYY? /bow....
hope the following explanation could be clear enough...
%%%%%%%%%%%%%%
\documentclass{article}
...
\section{sec1}
...
Fig.~\ref{fig1}
...
\section{sec2}
\begin{figure} \label{fig1}
...
\section{sec3}
\begin{figure} \label{fig2}
...
Fig.~\ref{ |
|
s**i 发帖数: 30 | 9 you can use something like this to compare two time:
#!/bin/bash
E_NOTSAMEDAY=-197
E_PARAM_ERR=-198
if [ -z "$2" ]
then
exit $E_PARAM_ERR
fi
day1=`echo $1|cut -d: -f1`
hour1=`echo $1|cut -d: -f2`
min1=`echo $1|cut -d: -f3`
#sec1=`echo $1| cut -d: -f4`
day2=`echo $2|cut -d: -f1`
hour2=`echo $2|cut -d: -f2`
min2=`echo $2|cut -d: -f3`
#sec2=`echo $2| cut -d: -f4`
if [[ "$day1" != "$day2" ]]
then
exit $E_NOTSAMEDAY
fi
diffh=$((hour2-hour1))
diffm=$((min2-min1))
difft=$((diffh*60+diffm))
ech |
|
|
s*******1 发帖数: 135 | 11 Test 42, sec1, Q19-23
Q19 Which one of the following could be an accurate and complete list of the
students who review only Sunset?
A. L
B. O
C J,L
accurate and complete list 是不是指答案中的人一起做题干中的事?
Thanks |
|